Copies any input to a user selected path.
WARNING: File/Folder at path will be overwritten! Component will fail if trying to replace a folder with a file, or link. Delete first to allow.
Examples:
CopyOutput(my_folder, "Display/Folder")._execute="always" CopyOutput(important_value, "OUTPUT_copy/value.csv", relativeToScript=false)
Version | 1.1 |
---|---|
Bundle | builtin |
Categories | Internal |
Specialties | generic |
Authors | Ville Rantanen (ville.rantanen@helsinki.fi) |
Issue tracker | View/Report issues |
Requires | python |
Source files | component.xml copyoutput.py |
Usage | Example with default values |
Name | Type | Mandatory | Description |
---|---|---|---|
in | T or Array<T> (generic) | Mandatory | File/Folder to copy. |
Name | Type | Default | Description |
---|---|---|---|
delete | boolean | false | Set true to delete existing output folders. |
link | boolean | false | Create symbolic links instead of copying. |
path | string | (no default) | File name. May be full path, or relative. See also relativeToScript |
relativeToScript | boolean | true | If true, path is relative to the running script. if false, to the execution folder. |