ComfyUI Node: exists

Class Name

Basic data handling: PathExists

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

exists Description

PathExists node checks if a specified file or directory path exists, returning a boolean value.

exists:

The PathExists node is designed to verify the existence of a specified path within the filesystem. This node is particularly useful for determining whether a given path, which can be either a file or a directory, is present on the system. By returning a simple boolean value, it provides a straightforward way to check for the presence of paths, which can be crucial for workflows that depend on the availability of certain files or directories. This functionality is essential for ensuring that subsequent operations, such as file reading or writing, are performed only when the necessary paths are confirmed to exist, thereby preventing errors and enhancing the robustness of your processes.

exists Input Parameters:

path

The path parameter is a string that specifies the path you want to check for existence. This parameter is crucial as it directly influences the node's execution by determining which path is being verified. The function of this parameter is to provide the node with the target path, which can be either a file or a directory. There are no explicit minimum or maximum values for this parameter, but it should be a valid path string. The default value is an empty string, which means if no path is provided, the node will not perform any meaningful check.

exists Output Parameters:

exists

The exists output parameter is a boolean value that indicates whether the specified path exists in the filesystem. If the path exists, the output will be True; otherwise, it will be False. This output is significant as it provides a clear and concise result of the path existence check, allowing you to make informed decisions in your workflow based on the presence or absence of the specified path.

exists Usage Tips:

  • Ensure that the path parameter is correctly specified and points to the intended file or directory to avoid false negatives.
  • Use this node to conditionally execute subsequent nodes or operations that depend on the existence of certain files or directories, thereby preventing errors in your workflow.

exists Common Errors and Solutions:

"Basic data handling: Save failed - no path specified"

  • Explanation: This error occurs when the path parameter is not provided or is an empty string, leading to a failure in executing the path existence check.
  • Solution: Ensure that you specify a valid path string in the path parameter before executing the node. Double-check the input to confirm that it is not left empty.

exists 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.

exists