---
id: "filepath"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["common"]
langs: ["common"]
aliases: ["path_file"]
quality: 75
url: "https://registry.apicrafter.io/datatype/filepath"
---

# File path (`filepath`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Location of a file in a file system, written as directory names joined by a separator and ending with the file name. Unix-like systems and URLs use the forward slash, Windows uses the backslash. A path is absolute when it starts from the root or a drive letter such as C:, and relative when it starts from a working directory. Datasets often keep paths to images, attachments and documents. The file name alone is the datatype filename, and its suffix is file_extension.

- Personal data (PII): no
- Categories: Common (common)
- Countries: global
- Languages: Common to most languages (common)
- Former IDs: `path_file`

## Examples

- `/var/log/syslog` — absolute path on a Unix-like system
- `images/2024/photo_001.jpg` — relative path to an image
- `C:\Users\Public\Documents\report.docx` — absolute path on Windows, with a drive letter

## Mappings

- wikidata: `Q817765`

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `pathfilebyknown` (field, `common/common.yaml`)

## Supported by tools

- `metacrafter`

## Translations

- ru: Путь к файлу

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Path_(computing)>
- wikidata: <https://www.wikidata.org/wiki/Q817765>

## Quality

Score 75/100. Missing: regexp, negative example.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/filepath.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/files/filepath.yaml>
