move_file

Moves a specified file to a new directory.

Arguments

Name
Type
Description
Required

path_to_file

string

The file path before moving it.

to_directory

string

The directory to move the file to.

Returns

Type
Description

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