---
title: "s.file-path"
description: "## Syntax **s.file-path**   ## Purpose The s.file-path annotation is used to tag a span 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…"
url: "https://www.stilo.com/docs/migrate/book/s-file-path/"
updated: "2023-12-18"
category: Annotations / Book, Map and Bookmap
tags:
  - Annotations
---

# s.file-path

## Syntax

**s.file-path**

 

## Purpose

The s.file-path annotation is used to tag a span 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 contained within a sentence.

## Examples

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

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-s.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-s.file-path1.png)

The following is the DITA XML output for the rule:

<p>In the previous example, <filepath>/user/</filepath> will be replaced by the name of the user in question. <filepath>C:</filepath> may be replaced if the user has installed GOS to a hard drive other than their <filepath>C:</filepath> drive.</p>
