# GetFileFromPath()

Extracts a filename from an absolute path.

```
GetFileFromPath( path=string );
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| path | string | Yes | file path |  |

# Examples

```cfml
my_file = getFileFromPath("filepath\file.ext");
dump(my_file); // file.ext
```







# Categories

[File handling](../../categories/files.md)