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

工作流活动

上次更新日期 2026年3月9日

列出存储文件

列出 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 String :要从中开始匹配的目录。此字段为必填字段。如果将此字段留空,则操作将从根目录开始。使用\作为目录分隔符来指定所需的目标目录。

storageBucketName String :文件所在的存储桶的名称。

ListStorageFiles(String, String, String)

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

IEnumerable<StorageFileInfo> ListStorageFiles(
    string directory,
    string storageBucketName,
    string folderPath
)
IEnumerable<StorageFileInfo> ListStorageFiles(
    string directory,
    string storageBucketName,
    string folderPath
)

directory String :要从中开始匹配的目录。此字段为必填字段。如果将此字段留空,则操作将从根目录开始。使用\作为目录分隔符来指定所需的目标目录。

storageBucketName String :文件所在的存储桶的名称。

folderPath String : 要用于此活动的 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 String :要从中开始匹配的目录。此字段为必填字段。如果将此字段留空,则操作将从根目录开始。使用\作为目录分隔符来指定所需的目标目录。

storageBucketName String :文件所在的存储桶的名称。

folderPath String : 要用于此活动的 Orchestrator 文件夹的路径。如果留空,则使用当前的 Orchestrator 文件夹。使用/作为目录分隔符来指定所需的目标目录。

recursive Boolean :布尔值变量,用于指定是否递归遍历所有子目录。

filter String : 用于筛选结果文件的匹配模式。如果留空,则返回所有文件(从目录开始,具体取决于“递归”属性字段的配置方式)。此字段是可选的。匹配语法为文件通配符,具体来说,它与 Microsoft 文件系统全局匹配器的规则相匹配:

  • *.pdf - 匹配目录中具有.pdf扩展名的所有文件。
  • \*.pdf - 匹配目录和任何子目录中具有 .pdf 扩展名的所有文件(请注意,它不会覆盖 Recurse 设置,如果您要求 ** 并将 Recurse 指定为 False,则只会列出 Directory 文件夹)。

timeoutMS Int32 :指定等待时间(以毫秒为单位),如果超出该时间后活动并未运行,系统便会抛出错误。默认值为 30000 毫秒(30 秒)。

返回值

枚举值<StorageFileInfo>

生成的文件名集合。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新