fs: Add dir option to fs.Purge #1891

Purge optional interface needs fixing too.
This commit is contained in:
Nick Craig-Wood
2017-12-07 12:25:56 +00:00
parent a375992186
commit 5ad226ab54
4 changed files with 21 additions and 18 deletions

View File

@@ -22,7 +22,7 @@ you want to selectively delete files.
cmd.CheckArgs(1, 1, command, args)
fdst := cmd.NewFsDst(args)
cmd.Run(true, false, command, func() error {
return operations.Purge(fdst)
return operations.Purge(fdst, "")
})
},
}