Port to latest libmutton development version

This commit is contained in:
2025-06-01 15:31:33 -04:00
parent 499c9cdd40
commit 9ee2f7ae0f
4 changed files with 17 additions and 16 deletions
+5 -2
View File
@@ -114,8 +114,11 @@ func main() {
case "note", "-n":
field = 4
case "rename", "-r":
back.TargetIsFile(targetLocation, true, 0) // ensure location exists before prompting for new location
cli.RenameCli(args[1]) // pass the incomplete path as the server and all clients (reading from the deletions directory) will have a different home directory
isAccessible, _ := back.TargetIsFile(targetLocation, true) // error is ignored because dir/file status is irrelevant
if !isAccessible {
other.PrintError("Failed to access location ("+targetLocation+")", back.ErrorTargetNotFound, true)
}
cli.RenameCli(args[1]) // pass the incomplete path as the server and all clients (reading from the deletions directory) will have a different home directory
default:
cli.HelpEdit()
}