ComfyUI Node: split

Class Name

Basic data handling: PathSplit

Category
Basic/Path
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling 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

split Description

PathSplit node divides file paths into directory and filename components for streamlined management.

split:

The PathSplit node is designed to simplify the process of breaking down a file path into its constituent directory and filename components. This functionality is particularly useful when you need to manage or manipulate file paths in your projects, allowing you to easily separate the directory path from the filename. By using this node, you can streamline workflows that involve file organization, path manipulation, or any task that requires understanding the structure of a file path. The node leverages the os.path.split method, ensuring reliable and consistent results across different operating systems.

split Input Parameters:

path

The path parameter is a string input that represents the file path you wish to split into directory and filename components. This parameter is crucial as it determines the path that will be processed by the node. The input should be a valid file path, and it can include both absolute and relative paths. The default value is an empty string, which means if no path is provided, the node will not perform any operation. There are no specific minimum or maximum values, but the path should be a valid string that represents a file path.

split Output Parameters:

directory

The directory output is a string that represents the directory component of the input path. This output is essential for understanding where the file is located within the file system. If the input path does not contain any directory information, this output will be an empty string.

filename

The filename output is a string that represents the filename component of the input path. This output is crucial for identifying the specific file within the directory. If the input path is a directory path without a specific file, this output will be an empty string.

split Usage Tips:

  • Ensure that the path parameter is correctly formatted and represents a valid file path to avoid unexpected results.
  • Use the directory output to manage or navigate directories, especially when dealing with complex file structures.
  • Utilize the filename output to perform operations specific to the file, such as renaming or processing the file content.

split Common Errors and Solutions:

Invalid path format

  • Explanation: The input path is not formatted correctly or is not a valid string.
  • Solution: Verify that the path is a valid string and correctly formatted according to your operating system's file path conventions.

Empty path input

  • Explanation: The input path is an empty string, resulting in no operation being performed.
  • Solution: Provide a valid file path to ensure the node can perform the split operation and return meaningful results.

split Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
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.

split