( storageName: string, path: string, destStoragename: string, destPath: string, newNmae?: string, pathF2f: boolean = false )
| 389 | } |
| 390 | |
| 391 | async function moveFile( |
| 392 | storageName: string, |
| 393 | path: string, |
| 394 | destStoragename: string, |
| 395 | destPath: string, |
| 396 | newNmae?: string, |
| 397 | pathF2f: boolean = false |
| 398 | ) { |
| 399 | await rclone_api_post( |
| 400 | '/operations/movefile', |
| 401 | { |
| 402 | srcFs: convertStoragePath(storageName, undefined, undefined, undefined, true), |
| 403 | srcRemote: convertStoragePath(storageName, formatPathRclone(path), undefined, true), |
| 404 | dstFs: convertStoragePath(destStoragename, undefined, undefined, undefined, true), |
| 405 | dstRemote: |
| 406 | convertStoragePath(destStoragename, destPath, !pathF2f, true) + |
| 407 | (!pathF2f && newNmae ? newNmae : getFileName(path)), |
| 408 | }, |
| 409 | true |
| 410 | ) |
| 411 | } |
| 412 | |
| 413 | //copyDir |
| 414 | async function copyDir( |
no test coverage detected