move_file

Moves a specified file to a new directory.

Arguments

NameTypeDescriptionRequired

path_to_file

string

The file path before moving it.

to_directory

string

The directory to move the file to.

Returns

TypeDescription

string

The new path of the moved file.

Example

- name: move_file
  arguments:
    path_to_file: <source-file-path>
    to_directory: <destination-directory>
  returns: <new-file-path>

Last updated