> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/evaluator/displayname.md).

# DisplayName

\<evalcmd> DisplayName && string && Display name of the file or folder. && path && path && Path to query the display name of. && \[flags] && string && The optional flags are:

|       |                                               |
| ----- | --------------------------------------------- |
| **f** | Return file part (final component)            |
| **p** | Return parsing path                           |
| **r** | Resolve to true location (e.g. library files) |

\</evalcmd>

Returns the display name of the file or folder.

//<Example://>

```
Output(DisplayName("/desktop"));
--> Desktop

Output(DisplayName("/desktop", "p"));
--> C:\Users\jon\Desktop
```

*See also:* [resolve](/directory-opus/manual/reference/evaluator/resolve.md)
