ComfyUI Node: is dir

Class Name

Basic data handling: PathIsDir

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

is dir Description

PathIsDir node checks if a path is a directory, returning a boolean for reliable file operations.

is dir:

The PathIsDir node is designed to determine whether a given path points to a directory. This functionality is crucial when you need to verify the existence and type of a path, ensuring that it is indeed a directory before performing operations that require directory-specific actions. By returning a simple boolean value, this node provides a straightforward way to validate paths, which can be particularly useful in workflows where directory checks are necessary to prevent errors or unexpected behavior. Its primary goal is to enhance the reliability of file system operations by confirming the nature of the path in question.

is dir Input Parameters:

path

The path parameter is a string that specifies the path you want to check. It serves as the input for the node to determine if the path points to a directory. The function of this parameter is to provide the node with the necessary information to perform its check. The impact of this parameter on the node's execution is direct; the node will return True if the path exists and is a directory, and False otherwise. The default value for this parameter is an empty string, which means if no path is provided, the node will not perform a meaningful check.

is dir Output Parameters:

is dir

The is dir output parameter is a boolean value that indicates whether the provided path is a directory. If the path exists and is a directory, this parameter will return True; otherwise, it will return False. This output is crucial for decision-making processes in workflows that require confirmation of a directory's existence before proceeding with directory-specific operations.

is dir Usage Tips:

  • Ensure that the path parameter is correctly specified to avoid false negatives. Double-check the path string for typos or incorrect directory separators.
  • Use this node in conjunction with other path-related nodes to build robust file system workflows, such as checking if a path is a file or joining paths.

is dir 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.
  • Solution: Ensure that you specify a valid path string in the path parameter before executing the node.

Path does not exist

  • Explanation: This error indicates that the specified path does not exist in the file system.
  • Solution: Verify that the path is correct and that the directory exists. If necessary, create the directory before checking it with the node.

is dir 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.

is dir