## FileInfo::get_Directory method


Returns a [DirectoryInfo](../../directoryinfo/) object that represents a directory in which the file represented by the current object is located.

```cpp
DirectoryInfoPtr System::IO::FileInfo::get_Directory()
```

## See Also

* Typedef [DirectoryInfoPtr](../../../system/directoryinfoptr/)
* Class [FileInfo](../)
* Namespace [System::IO](../../)
* Library [Aspose.PDF for C++](../../../)
