Errors

To enable proper tracking of files and to prevent erroneous file copies, CopyTargetv1.4 enforces the following guidelines. Violations are reported with an error and the line of the offending code.

Fault

Description

Error

Files cannot be copied implicitly.

Copying directories is not permitted.

In case of violation, CopyTarget throws an error saying, for example, Error: CopyTarget does not allow directory to directory copy. Please itemize the files to copy.

Use of wildcards in file names in not permitted.

Wildcard expansion is not permitted.

In case of violation, CopyTarget throws an error saying, for example, FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/*'.

Directory path entries must end with a slash (/).

Directories must end in a trailing slash to differentiate from files.

In case of violation, CopyTarget throws an error saying Error: Directory entries must end with a trailing slash.

Metadata of each file must be defined.

All metadata must be specified.

In case of violation, CopyTarget throws an error saying, for example, Error: Expected key 'owner' is not defined.