Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 0084dbb

Browse files
committed
build file
1 parent b6761e5 commit 0084dbb

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

lib/storage.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@ function downloadDirectory(options) {
6161
exports.downloadDirectory = downloadDirectory;
6262
function deleteFile(options) {
6363
return __awaiter(this, void 0, void 0, function* () {
64-
const { envId, cloudPath } = options;
64+
const { envId, cloudPath, cloudPaths } = options;
6565
const storageService = yield getStorageService(envId);
66-
return storageService.deleteFile(cloudPath);
66+
if (cloudPaths && cloudPaths.length) {
67+
return storageService.deleteFile(cloudPaths);
68+
}
69+
return storageService.deleteFile([cloudPath]);
6770
});
6871
}
6972
exports.deleteFile = deleteFile;
@@ -85,9 +88,9 @@ function list(options) {
8588
exports.list = list;
8689
function getUrl(options) {
8790
return __awaiter(this, void 0, void 0, function* () {
88-
const { envId, cloudPath } = options;
91+
const { envId, cloudPaths } = options;
8992
const storageService = yield getStorageService(envId);
90-
return storageService.getTemporaryUrl(cloudPath);
93+
return storageService.getTemporaryUrl(cloudPaths);
9194
});
9295
}
9396
exports.getUrl = getUrl;

0 commit comments

Comments
 (0)