ComfyUI > Nodes > Basic data handling > get current working directory

ComfyUI Node: get current working directory

Class Name

Basic data handling: PathGetCwd

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

get current working directory Description

PathGetCwd node retrieves the absolute path of the current working directory for file management.

get current working directory:

The PathGetCwd node is designed to provide you with the current working directory of your environment. This node is particularly useful when you need to understand or verify the directory context in which your scripts or applications are running. By returning the absolute path of the current working directory, it helps in managing file paths and ensuring that any file operations are performed in the correct directory. This can be especially beneficial in scenarios where your workflow involves multiple directories or when you need to dynamically adjust paths based on the current working environment. The node simplifies the process of retrieving this information, making it accessible without requiring extensive technical knowledge.

get current working directory Input Parameters:

This node does not require any input parameters. It operates independently to fetch the current working directory.

get current working directory Output Parameters:

current directory

The output parameter, current directory, provides the absolute path of the current working directory as a string. This output is crucial for understanding the directory context of your operations, allowing you to ensure that any file manipulations or path-dependent operations are executed in the correct location. By knowing the current directory, you can dynamically adjust file paths and manage resources more effectively within your workflow.

get current working directory Usage Tips:

  • Use this node to verify the current working directory before performing file operations to avoid path-related errors.
  • Integrate this node into workflows that involve dynamic path adjustments to ensure that all operations are contextually accurate.

get current working directory Common Errors and Solutions:

No specific error messages

  • Explanation: This node is straightforward and does not typically produce errors as it simply retrieves the current working directory.
  • Solution: Ensure that your environment is correctly set up and that there are no restrictions on accessing the working directory. If issues arise, check your environment's permissions and configurations.

get current working directory 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.

get current working directory