Fix inability to add a folder on the server if the folder was already created on a client that failed to sync

This commit is contained in:
2025-04-20 00:50:27 -04:00
parent 259d9a3309
commit 451d695649
+2 -1
View File
@@ -1,6 +1,7 @@
package sync package sync
import ( import (
"fmt"
"os" "os"
"strings" "strings"
@@ -100,7 +101,7 @@ func AddFolderLocal(targetLocationIncomplete string) {
err := os.Mkdir(targetLocationComplete, 0700) err := os.Mkdir(targetLocationComplete, 0700)
if err != nil { if err != nil {
if os.IsExist(err) { if os.IsExist(err) {
core.PrintError("Directory already exists", core.ErrorTargetExists, true) fmt.Println(ansiUpload + "Directory already exists - libmutton will still ensure it exists on the server")
} else { } else {
core.PrintError("Failed to create directory: "+err.Error(), core.ErrorWrite, true) core.PrintError("Failed to create directory: "+err.Error(), core.ErrorWrite, true)
} }