UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

工作流活动

存在路径

检查指定的路径是否存在。路径可以表示文件路径或目录路径。

定义

命名空间: UiPath.Activities.System.API

程序集: UiPath.System.Activities.Api(在 UiPath.System.Activities.Api.dll 中)

重载

PathExists(String)检查输入的路径是否存在。
PathExists(String, PathType)检查输入的路径和路径类型是否存在。
PathExists(String, ILocalResource)检查输入的路径及其引用是否存在。
PathExists(String, PathType, ILocalResource)检查输入的路径、路径类型和对路径的引用是否存在。

PathExists(String)

检查输入的路径是否存在。

bool PathExists(
    string path
)
bool PathExists(
    string path
)

path String : 要检查的完整路径。

PathExists(String, PathType)

检查输入的路径和路径类型是否存在。

bool PathExists(
    string path,
    PathType pathType
)
bool PathExists(
    string path,
    PathType pathType
)

path String : 要检查的完整路径。

pathType PathType :检查指定的路径是否存在。路径可以是文件,也可以是目录。

PathExists(String, ILocalResource)

检查输入的路径及其引用是否存在。

bool PathExists(
    string path,
    out ILocalResource resource
)
bool PathExists(
    string path,
    out ILocalResource resource
)

path String : 要检查的完整路径。

resource ILocalResource :如果路径存在,则引用。

PathExists(String, PathType, ILocalResource)

检查输入的路径、路径类型和对路径的引用是否存在。

bool PathExists(
    string path,
    PathType pathType,
    out ILocalResource resource
)
bool PathExists(
    string path,
    PathType pathType,
    out ILocalResource resource
)

path String : 要检查的完整路径。

pathType PathType :检查指定的路径是否存在。路径可以是文件,也可以是目录。

resource ILocalResource :如果路径存在,则引用。

返回值

说明是否找到了文档或文件。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新