A catalog to work with the OS filesystem and environment variables. It includes operators to perform file & directory creation and manipulation and more.
Operator to copy a given list of files to a target directory.
By turning on the preserveMetadata option one can choose to also copy the file's metadata.
Optionally one can specify to create the target directory if the one provided does not exist.
If the skipOnError option is on, the copying process will continue and will show a warning if an error occurs. If it's off it will stop the copy and raise an error.
If the overwrite option is on, the copying process will overwrite the existing files and will show a warning message. If it's off it will ignore the existing files.
Filter a list of files using either Python regular expressions format or a shell style matching.
By turning the onlyBasename option on, the filter will only filter by the basename of the provided files.
Operator that gets the absolute path of the provided path.
Optionally one can specify the base directory to the absolute path, by default it is absolute to the current working directory.
Operator that gets the relative path of the provided path.
Optionally one can specify the base directory to the relative path, by default it is relative to the current working directory.
The provided path has to be absolute, if not then it will raise an error.
The path and the base directory have to belong to the same mounted disk in the system.
Operator to move a given list of files to a target directory.
By turning on the preserveMetadata option one can choose to also preserve the file's metadata.
Optionally one can specify to create the target directory if the one provided does not exist.
If the skipOnError option is on, the moving process will continue and will show a warning if an error occurs. If it's off it will stop the moving process and raise an error.
If the overwrite option is on, the moving process will overwrite the existing files and will show a warning message. If it's off it will ignore the existing files.
Operator to read the content from a given file.
Optionally the reading mode can be modified. By default, it is in reading mode.
The default encoding is utf-8, this can be updated by changing the encoding option.
Operator used to read the content from a given file line by line.
The result is a list of strings where each element of the list represents one line in the file.
Optionally the reading mode can be modified to support binary content.
The default encoding is utf-8, this can be updated by changing the encoding option.
Operator to remove the given directory. By default, if the directory is not empty, the operator will raise an error.
Optionally one can force the recursive removal of its content by turning on the removeContent option.
Operator to rename a given list of filepaths with the new names provided by the newFilenames list.
If the option overwrite is on and the name of the new file already exists, then it will be overwritten. Otherwise it will show a warning about the filename being duplicated.
If the option skipOnError is on and an error occurs while renaming a file, the execution will continue to the next filepath. Otherwise it will raise an error and stop.
Operator to set the current working directory to the path specified.
If the createPath option is turned on and the path provided does not exist, it will be created.
Operator to set an extension to a given filename.
Optionally one can turn on the replaceExtension option if the filepath already has an extension, this will replace it with the provided one.
Operator that splits the given filepath into two parts: directory contains the last pathname component and basename contains everything leading up to that.
Operator to write the given content to the provided file.
Optionally one can turn on the createFile if the provided file does not exist. Otherwise it will raise an error.
Optionally the writing mode can be modified. By default it is in writing mode(w).
Operator to write the given list of strings to the provided file as individual lines.
Optionally one can turn on the createFile if the provided filename does not exist. Otherwise it will raise an error.
Optionally the writing mode can be modified. By default it is on overwriting mode.
The default encoding is utf-8, this can be updated by changing the encoding option.