diff --git a/libmuttonserver.go b/libmuttonserver.go index f179c94..c653fab 100644 --- a/libmuttonserver.go +++ b/libmuttonserver.go @@ -25,10 +25,10 @@ func main() { // shear an entry from the server and add it to the deletions directory deviceIDTargetLocation := strings.Split(args[2], "\x1d") targetLocationIncomplete := strings.ReplaceAll(strings.ReplaceAll(deviceIDTargetLocation[1], "\x1f", " "), "\x1e", backend.PathSeparator) - sync.Shear(targetLocationIncomplete, deviceIDTargetLocation[0]) + sync.ShearLocal(targetLocationIncomplete, deviceIDTargetLocation[0]) case "addfolder": // add a new folder to the server - sync.AddFolder(strings.ReplaceAll(args[2], "\x1f", " "), true) + sync.AddFolderLocal(strings.ReplaceAll(args[2], "\x1f", " ")) case "register": // register a new device ID os.Create(backend.ConfigDir + backend.PathSeparator + "devices" + backend.PathSeparator + args[2]) diff --git a/mutn.go b/mutn.go index dc7ecae..0f05f07 100644 --- a/mutn.go +++ b/mutn.go @@ -45,7 +45,7 @@ func main() { case "add": cli.AddEntry(targetLocation, true, 0) case "shear": - sync.Shear(args[1], "") // pass the incomplete path for cleaner formatting in server deletions directory + sync.ShearRemoteFromClient(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.HelpMain() } @@ -142,7 +142,7 @@ func main() { case "note", "-n": cli.AddEntry(targetLocation, true, 2) case "folder", "-f": - sync.AddFolder(args[1], false) + sync.AddFolderRemoteFromClient(args[1]) // pass the incomplete path as the server will have a different home directory default: cli.HelpAdd() }