---
title: "file:pathinfo — Path information"
description: "iXML command file:pathinfo: Path information."
canonical_url: "https://www.zeyos.com/ixml/ref/file-pathinfo"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/file-pathinfo.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# file:pathinfo — Path information

FILE:PATHINFO parses a filename and returns the various components thereof.

FILE:PATHINFO returns an array comprised of the following items:

				Key       Description
				------------------------------------
				dirname   directory name
				basename  base name
				extension file extension
				filename  filename without extension

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |
| filename | string |  | Filename |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: array; predicate: no-result-propagation

### Examples

```xml
<file:pathinfo var="info" filename="./test/ixml.inc"/>
<output>Dir: $info.dirname, Base: $info.basename, Ext: $info.extension, Name: $info.filename</output>
<!-- Dir: ./test, Base: ixml.inc, Ext: inc, Name: ixml -->
```
