Delete command

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-08-13 00:10:39 +02:00
parent bc8607eb72
commit 1e6320df0e
8 changed files with 351 additions and 0 deletions
+8
View File
@@ -9,6 +9,7 @@ import {
listRemotes,
mountRemote,
startCopy,
startDelete,
startMove,
startSync,
unmountAllRemotes,
@@ -322,10 +323,17 @@ async function handleTask(task: ScheduledTask) {
_filter,
createEmptySrcDirs,
deleteEmptyDstDirs,
fs,
rmDirs,
} = task.args
switch (task.type) {
case 'delete':
await startDelete({
fs,
rmDirs,
_filter,
})
break
case 'copy':
await startCopy({