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

列出存储文件

列出 Orchestrator 中指定存储桶中与给定模式匹配的文件。

定义

命名空间: UiPath Activities.System.API

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

重载

方法描述
ListStorageFiles(String, String)列出 Orchestrator 中指定存储桶中与给定模式匹配的文件。
ListStorageFiles(String, String, String)列出指定文件夹路径中 Orchestrator 中指定存储桶中与给定模式匹配的文件。
ListStorageFiles(String, String, String, Boolean, String, Int32)列出 Orchestrator 中指定存储桶中与给定模式匹配的文件以及其他配置。

ListStorageFiles(String, String)

列出 Orchestrator 中指定存储桶中与给定模式匹配的文件。

IEnumerable<StorageFileInfo> ListStorageFiles(
	string directory,
	string storageBucketName
)IEnumerable<StorageFileInfo> ListStorageFiles(
	string directory,
	string storageBucketName
)
directory 字符串
要从中开始匹配的目录。 此字段为必填字段。如果将此字段留空,则操作将从根目录开始。使用 \ 作为目录分隔符来指定所需的目标目录。
storageBucketName 字符串
文件所在存储桶的名称。

ListStorageFiles(String, String, String)

列出指定文件夹路径中 Orchestrator 中指定存储桶中与给定模式匹配的文件。

IEnumerable<StorageFileInfo> ListStorageFiles(
	string directory,
	string storageBucketName,
	string folderPath
)IEnumerable<StorageFileInfo> ListStorageFiles(
	string directory,
	string storageBucketName,
	string folderPath
)
directory 字符串
要从中开始匹配的目录。 此字段为必填字段。如果将此字段留空,则操作将从根目录开始。使用 \ 作为目录分隔符来指定所需的目标目录。
storageBucketName 字符串
文件所在存储桶的名称。
folderPath 字符串
要用于此活动的 Orchestrator 文件夹的路径。 如果留空,则使用当前的 Orchestrator 文件夹。 使用 / 作为目录分隔符来指定所需的目标目录。

ListStorageFiles(String, String, String, Boolean, String, Int32)

列出 Orchestrator 中指定存储桶中与给定模式匹配的文件以及其他配置。

IEnumerable<StorageFileInfo> ListStorageFiles(
	string directory,
	string storageBucketName,
	string folderPath,
	bool recursive,
	string filter,
	int timeoutMS
)IEnumerable<StorageFileInfo> ListStorageFiles(
	string directory,
	string storageBucketName,
	string folderPath,
	bool recursive,
	string filter,
	int timeoutMS
)
directory 字符串
要从中开始匹配的目录。 此字段为必填字段。如果将此字段留空,则操作将从根目录开始。使用 \ 作为目录分隔符来指定所需的目标目录。
storageBucketName 字符串
文件所在存储桶的名称。
folderPath 字符串
要用于此活动的 Orchestrator 文件夹的路径。 如果留空,则使用当前的 Orchestrator 文件夹。 使用 / 作为目录分隔符来指定所需的目标目录。
recursive 布尔值
一个布尔值变量,用于指定是否递归遍历所有子目录。
filter 字符串
用于筛选结果文件的匹配模式。 如果留空,则返回所有文件 (从目录开始,具体取决于“ 递归 ”属性字段的配置方式)。 此字段是可选的。 匹配语法为文件通配符,具体来说,它与 Microsoft 文件系统全局匹配器的规则相匹配:
  • *.pdf - 匹配目录中具有.pdf扩展名的所有文件。
  • \*.pdf - 匹配目录和任何子目录中具有 .pdf 扩展名的所有文件(请注意,它不会覆盖 Recurse 设置,如果您要求 ** 并将 Recurse 指定为 False,则只会列出 Directory 文件夹)。
timeoutMS Int32
指定等待时间 (以毫秒为单位)。如果超出该时间活动未运行,就会引发错误。默认值为 30000 毫秒 (30 秒)。

返回值

IEnumerable <StorageFileInfo>

生成的文件名集合。

此页面是否有帮助?

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