(storageName: string, path: string, refreshCallback?: RefreshCallback)
| 329 | type RefreshCallback = () => void |
| 330 | |
| 331 | async function delFile(storageName: string, path: string, refreshCallback?: RefreshCallback) { |
| 332 | if (path.substring(0, 1) == '/') { |
| 333 | path = path.substring(1, path.length) |
| 334 | } |
| 335 | await rclone_api_post('/operations/deletefile', { |
| 336 | fs: convertStoragePath(storageName, undefined, undefined, undefined, true), |
| 337 | remote: convertStoragePath(storageName, path, false, true), |
| 338 | }) |
| 339 | |
| 340 | if (refreshCallback) { |
| 341 | refreshCallback() |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | async function delDir(storageName: string, path: string, refreshCallback?: RefreshCallback) { |
| 346 | await rclone_api_post('/operations/purge', { |
no test coverage detected