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

# Path To String

**Type:** `lib.os.PathToString`

**Namespace:** `lib.os`

## Description

Convert a FilePath object to a string.
    files, path, string, convert

    Use cases:
    - Get raw string path from FilePath object
    - Convert FilePath for string operations
    - Extract path string for external use

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| file_path | `str` | File path to convert to string | `` |

## Outputs

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

## Related Nodes

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