---
title: "p.file-path"
description: "## Syntax **p.file-path** ## Purpose The p.file-path annotation is used to tag an element as being the name of a file or system directory. This is typically applied to snippets of a file path or a full file path as…"
url: "https://www.stilo.com/docs/migrate/task/p-file-path-2/"
updated: "2023-12-11"
category: Annotations / Task
tags:
  - Annotations
---

# p.file-path

## Syntax

**p.file-path**

## Purpose

The p.file-path annotation is used to tag an element as being the name of a file or system directory. This is typically applied to snippets of a file path or a full file path as a standalone sentence.

## Example

The following is an example of a time when you might want to use the annotation

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-p.file-path0.png)

 

The following is an example of a rule that will apply the annotation

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-p.file-path1.png)

The following is the DITA XML output for the rule:

<p><filepath>C:/user/documents/GOS/files/new_file.gos</filepath></p>
