---
title: "Relative Path"
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/relativepath
markdown: https://docs.nodetool.ai/nodes/lib/os/relativepath.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/os/relativepath.md
---

# Relative Path

**Type:** `lib.os.RelativePath`

**Namespace:** `lib.os`

## Description

Return a relative path to a target from a start directory.
    files, path, relative

    Use cases:
    - Create relative path references
    - Generate portable paths
    - Compare file locations

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| target_path | `str` | Target path to convert to relative | `` |
| start_path | `str` | Start path for relative conversion | `.` |

## Outputs

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

## Related Nodes

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