---
title: "Get Directory"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/os/getdirectory
markdown: https://docs.nodetool.ai/nodes/lib/os/getdirectory.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/os/getdirectory.md
---

# Get Directory

**Type:** `lib.os.GetDirectory`

**Namespace:** `lib.os`

## Description

Get directory containing the file.
    files, metadata, directory

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| path | `str` | Path to file | `` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |

## Related Nodes

Browse other nodes in the [lib.os](./) namespace.
