活动
最新
False
横幅背景图像
工作流活动
上次更新日期 2024年4月22日

存在路径

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

定义

命名空间: 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 字符串
要检查的完整路径。

PathExists(String, PathType)

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

bool PathExists(
	string path,
	PathType pathType
)bool PathExists(
	string path,
	PathType pathType
)
path 字符串
要检查的完整路径。
pathType PathType
检查指定路径是否存在。 路径可以是文件,也可以是目录。

PathExists(String, ILocalResource)

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

bool PathExists(
	string path,
	out ILocalResource resource
)bool PathExists(
	string path,
	out ILocalResource resource
)
path 字符串
要检查的完整路径。
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 字符串
要检查的完整路径。
pathType PathType
检查指定路径是否存在。 路径可以是文件,也可以是目录。
resource ILocalResource
如果路径存在,则进行引用。

返回值

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

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.