copy_file
Copies a file to a different path in the repository, retaining the original file at its original path.
Arguments
Name | Type | Description | Required |
---|---|---|---|
source_path | string | The relative path to the file that needs to be copied over. | |
destination_path | string | The relative path to the directory where the file should be copied to. | |
new_file_name | string | The name of the file that should be copied. If not provided,we will check if the destination path has a filename. Otherwise, we will use the original name of the file from the source path. |
Returns
Type | Description |
---|---|
string | The new path to the file. |
Example
Last updated