Rename Files with Table¶
These nodes are for common file operations: copy, delete, rename, and remove. For many operations it is possible to use regular expressions to create new filenames, etc.
-
class
node_file_operations.
RenameFilesWithTable
[source]¶ Using a table with old names and new names in two columns, this node renames files in the same folder as the input datasources. The datasources can point to multiple files in different directories. The column with the current filenames can be an absolute or relative path, but the column with the new names should only contain the filename, with no directory prefix. If a prefix is present it will be discarded.
Inputs: - port1 : [datasource]
Files to be renamed
- port2 : table
List of new filenames
Outputs: - port1 : [datasource]
Renamed files
Configuration: - Current filenames
The column with the current file names
- New filenames
The column with the new filenames
- Do not raise exceptions
If a file operation fails, do not raise an exception