Fix rename prompting for new location before verifying old one exists

This commit is contained in:
2024-07-19 13:48:14 -04:00
parent 3b6db54dd7
commit 83aa4ee497
4 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -98,7 +98,8 @@ func main() {
case "note", "-n":
field = 4
case "rename", "-r":
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
backend.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
default:
cli.HelpEdit()
}