@@ -32,31 +32,43 @@ function uploadFile(options) {
3232 return __awaiter ( this , void 0 , void 0 , function * ( ) {
3333 const { envId, localPath, cloudPath } = options ;
3434 const storageService = yield getStorageService ( envId ) ;
35- return storageService . uploadFile ( localPath , cloudPath ) ;
35+ return storageService . uploadFile ( {
36+ localPath,
37+ cloudPath
38+ } ) ;
3639 } ) ;
3740}
3841exports . uploadFile = uploadFile ;
3942function uploadDirectory ( options ) {
4043 return __awaiter ( this , void 0 , void 0 , function * ( ) {
4144 const { envId, localPath, cloudPath } = options ;
4245 const storageService = yield getStorageService ( envId ) ;
43- return storageService . uploadDirectory ( localPath , cloudPath ) ;
46+ return storageService . uploadDirectory ( {
47+ localPath,
48+ cloudPath
49+ } ) ;
4450 } ) ;
4551}
4652exports . uploadDirectory = uploadDirectory ;
4753function downloadFile ( options ) {
4854 return __awaiter ( this , void 0 , void 0 , function * ( ) {
4955 const { envId, localPath, cloudPath } = options ;
5056 const storageService = yield getStorageService ( envId ) ;
51- return storageService . downloadFile ( cloudPath , localPath ) ;
57+ return storageService . downloadFile ( {
58+ cloudPath,
59+ localPath
60+ } ) ;
5261 } ) ;
5362}
5463exports . downloadFile = downloadFile ;
5564function downloadDirectory ( options ) {
5665 return __awaiter ( this , void 0 , void 0 , function * ( ) {
5766 const { envId, localPath, cloudPath } = options ;
5867 const storageService = yield getStorageService ( envId ) ;
59- return storageService . downloadDirectory ( cloudPath , localPath ) ;
68+ return storageService . downloadDirectory ( {
69+ cloudPath,
70+ localPath
71+ } ) ;
6072 } ) ;
6173}
6274exports . downloadDirectory = downloadDirectory ;
0 commit comments