Skip to main content

Move Files

Command description

Moves one or more files to the target folder and returns a list of moved file paths.

Command Input Parameters

input parametersInput parameter typeDescription
Files to Movestr or list[str]A file path or list of file paths to move
Destination FolderstrThe destination folder to move the files to
If File ExistsenumOverwrite, Do Not Move

Command Output Parameters

Output parametersOutput parameter typeDescription
Moved File Path Listlist[str]Moved file path list

Edge Cases

  • Files to Move can be one file path or a list. The command reports an error if any path does not exist.
  • If a source path is a folder, the command reports an error. Use "Move Folder" instead.
  • The destination folder is created automatically if it does not exist. The command reports an error if the destination path is an existing file.
  • When a file with the same name already exists in the target location: "Overwrite" will delete the target path with the same name before moving it, "Do Not Move" will leave the source file unchanged and add the existing target path to the return list.

Generation Notes

  • Move files into the destination folder. The command can create the destination folder if it does not exist.