This Task takes files and folders and copies them to another directory anywhere on your system.
FileSystem.CopyToDirectory also passes its input to its output directory as it is, so you can put another Task behind it.
- directory (required) is a string of the full path to the directory that should receive all the content. You need to have write permissions at that location.
directory = '/my/target/directory'
- create_directory (optional) is a boolean that determines what should happen if the directory does not exist yet: If set to False and the Task throws an error and exits. If set to True it creates the directory and continues.
# create_directory = False # default
create_directory = True
- overwrite_existing (optiona) is a boolean that determines what should happen if a file or folder of the same name already exists at the target location: If set to False the Task throws an error and exits. If set to True it overwrites the file/folder and continues.
# overwrite_existing = False # default
overwrite_existing = True
Python (Non-Standard-Library Packages)