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

下载存储文件

将 Orchestrator 存储桶中的文件副本下载到本地。

定义

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

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

重载

DownloadStorageFile(String, String)将 Orchestrator 存储桶中的文件副本下载到本地。
DownloadStorageFile(String, String, String)在本地指定文件夹路径下载 Orchestrator 存储桶中的文件副本。
DownloadStorageFile(String, String, String, String, Int32)在本地下载 Orchestrator 存储桶中的文件副本,并指定目标以及其他配置。

DownloadStorageFile(String, String)

将 Orchestrator 存储桶中的文件副本下载到本地。

ILocalResource DownloadStorageFile(
    string path,
    string storageBucketName
)
ILocalResource DownloadStorageFile(
    string path,
    string storageBucketName
)

path String : 要下载的存储桶内文件的完整路径。该文件必须存在于源 Orchestrator 存储容器中。

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

DownloadStorageFile(String, String, String)

在本地指定文件夹路径下载 Orchestrator 存储桶中的文件副本。

ILocalResource DownloadStorageFile(
    string path,
    string storageBucketName,
    string folderPath
)
ILocalResource DownloadStorageFile(
    string path,
    string storageBucketName,
    string folderPath
)

path String : 要下载的存储桶内文件的完整路径。该文件必须存在于源 Orchestrator 存储容器中。

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

folderPath String : 要用于此活动的 Orchestrator 文件夹的路径。如果留空,则使用当前的 Orchestrator 文件夹。

DownloadStorageFile(String, String, String, Int32)

在指定的文件夹路径中,本地下载 Orchestrator 存储桶中的文件副本,并配置“超时 (毫秒)”。

ILocalResource DownloadStorageFile(
    string path,
    string storageBucketName,
    string folderPath,
    string destination,
    int timeoutMS
)
ILocalResource DownloadStorageFile(
    string path,
    string storageBucketName,
    string folderPath,
    string destination,
    int timeoutMS
)

path String : 要下载的存储桶内文件的完整路径。该文件必须存在于源 Orchestrator 存储容器中。

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

folderPath String : 要用于此活动的 Orchestrator 文件夹的路径。如果留空,则使用当前的 Orchestrator 文件夹。

destination String : 要从中下载文件的包含文件名的完整本地路径。根据运行时执行目录解析相对路径。此路径必须包含文件名,以便活动正常工作。

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

返回值

ILocalResource

对已下载文件的引用。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新