## Path::GetDirectoryName method


Returns the name of the directory referenced by the specified path.

```cpp
static String System::IO::Path::GetDirectoryName(const String &path)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path | const String\& | A path to a directory |

### ReturnValue

The directory's name

## See Also

* Class [String](../../../system/string/)
* Class [Path](../)
* Namespace [System::IO](../../)
* Library [Aspose.PDF for C++](../../../)
