# GetDirectoryFromPath()

Extracts a directory from an absolute path.

Returns the absolute path, without the filename.

```
GetDirectoryFromPath( path=string );
```

**Returns:** string

# Arguments

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

# Examples

```cfml
some_directory = getDirectoryFromPath("path");
dump(some_directory);
```







# Categories

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

# See Also

[GetCurrentTemplatePath()](getcurrenttemplatepath.md)