ComfyUI > Nodes > TrentNodes > Smart File Transfer (Auto-Rename)

ComfyUI Node: Smart File Transfer (Auto-Rename)

Class Name

SmartFileTransferNode

Category
Trent/Utilities
Author
TrentHunter82 (Account age: 0days)
Extension
TrentNodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install TrentNodes

Install this extension via the ComfyUI Manager by searching for TrentNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter TrentNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Smart File Transfer (Auto-Rename) Description

SmartFileTransferNode automates file transfers with intelligent collision handling by renaming duplicates.

Smart File Transfer (Auto-Rename):

The SmartFileTransferNode is a versatile utility within the ComfyUI framework designed to facilitate the seamless transfer of files with intelligent collision handling. This node is particularly beneficial for users who need to manage file transfers without the hassle of manually resolving filename conflicts. It automatically detects if a file with the same name already exists in the destination directory and generates a unique filename by appending a numerical suffix, such as file(1).ext, file(2).ext, etc. This feature ensures that no data is overwritten unintentionally, providing a reliable and efficient solution for file management tasks. The node's primary function is to either copy or move files from a source to a destination while handling potential conflicts gracefully, making it an essential tool for AI artists and other users who frequently work with large volumes of files.

Smart File Transfer (Auto-Rename) Input Parameters:

source_path

The source_path parameter specifies the location of the file you wish to transfer. It is crucial as it determines which file will be copied or moved. Ensure that the path is correct and accessible to avoid errors during the transfer process. There are no specific minimum or maximum values, but it should be a valid file path.

destination_path

The destination_path parameter defines where the file will be transferred. This path should point to the directory where you want the file to be copied or moved. Like the source path, it must be valid and writable to ensure a successful transfer.

operation

The operation parameter determines whether the file will be copied or moved. This choice impacts whether the original file remains in its source location (copy) or is removed after transfer (move). The options are typically "copy" or "move".

collision_handling

The collision_handling parameter dictates how the node should handle filename conflicts. By default, it is set to automatically rename files to avoid overwriting. This ensures that all files are preserved without manual intervention.

create_directories

The create_directories parameter, when enabled, allows the node to create any necessary directories in the destination path that do not already exist. This is useful for ensuring that the transfer process is not halted due to missing directories.

rename_pattern

The rename_pattern parameter provides a template for renaming files in case of a collision. It typically includes a placeholder for a numerical suffix, ensuring that each file has a unique name.

custom_filename

The custom_filename parameter allows you to specify a new name for the file being transferred. If left empty, the original filename is used, subject to any necessary renaming due to collisions.

Smart File Transfer (Auto-Rename) Output Parameters:

result_message

The result_message output provides feedback on the transfer operation, indicating success or detailing any issues encountered. This message helps you understand the outcome of the file transfer process.

final_path

The final_path output reveals the exact location and name of the transferred file, including any modifications made to avoid collisions. This information is crucial for locating the file post-transfer.

success

The success output is a boolean value indicating whether the file transfer was completed successfully. A true value signifies success, while false indicates that an error occurred during the process.

Smart File Transfer (Auto-Rename) Usage Tips:

  • Ensure that both the source and destination paths are correctly specified and accessible to avoid transfer errors.
  • Use the collision_handling feature to automatically manage filename conflicts, saving time and preventing data loss.
  • Enable create_directories if you anticipate transferring files to new or non-existent directories to streamline the process.

Smart File Transfer (Auto-Rename) Common Errors and Solutions:

"Source file not found"

  • Explanation: The specified source file path does not exist or is incorrect.
  • Solution: Verify the source path and ensure the file exists at the specified location.

"Destination path not writable"

  • Explanation: The destination directory is not accessible or lacks write permissions.
  • Solution: Check the destination path for correct permissions and ensure it is writable.

"File transfer failed due to collision"

  • Explanation: A file with the same name exists, and collision handling is not set to rename.
  • Solution: Enable collision handling to automatically rename files or manually resolve the conflict.

Smart File Transfer (Auto-Rename) Related Nodes

Go back to the extension to check out more related nodes.
TrentNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Smart File Transfer (Auto-Rename)