## Directory::Exists method


确定指定路径是否指向现有目录。

```cpp
static bool System::IO::Directory::Exists(const String &path)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 路径 | const String\& | 要检查的路径 |

### ReturnValue

如果指定路径指向已存在的目录则为 true，否则为 false

## 另见

* Class [String](../../../system/string/)
* Class [Directory](../)
* Namespace [System::IO](../../)
* Library [Aspose.Page for C++](../../../)
