---
layout: page
title: "Dirname"
node_type: "lib.os.Dirname"
namespace: "lib.os"
---

**Type:** `lib.os.Dirname`

**Namespace:** `lib.os`

## Description

Get the directory name component of a file path.
    files, path, dirname

    Use cases:
    - Extract directory path from full path
    - Get parent directory
    - Process directory paths

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| path | `str` | File path to get dirname from | `` |

## Outputs

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

## Related Nodes

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