copyutils
copyutils ¶
Module for copying files
Classes¶
CopyFileInfo
dataclass
¶
Dataclass which is used to compare an input file with an output file
Functions¶
copy_file ¶
Copies the input file to the output location
Source code in niceml/utilities/copyutils.py
CopyInfo
dataclass
¶
This class contains the information for copying files between filesystems
Functions¶
copy_to_filesystem ¶
Copies the files to a target path in the target filesystem
Source code in niceml/utilities/copyutils.py
Functions¶
filter_for_required ¶
Checks if a copying files from input to output location is required. If a file already exists in the output location and has not changed (same filehash), copying this file is not required. Args: copy_file_list: list of files to check
Returns:
-
List[CopyFileInfo]
–List of files that are required to be copy
Source code in niceml/utilities/copyutils.py
process_copy_files ¶
Copies/symlinks all files without any checks from input to output location