Implement offline shearing/removal

This commit is contained in:
2024-03-05 12:29:10 -05:00
parent 8704ba6972
commit 85067fef40
3 changed files with 20 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,6 @@ func AddFolder(targetLocation string) {
// create the directory specified by targetLocation
err := os.Mkdir(targetLocation, 0700)
if err != nil {
// if the directory already exists, print an error message and exit
if os.IsExist(err) {
fmt.Println(AnsiError + "Directory already exists" + AnsiReset)
os.Exit(1)
@@ -19,4 +18,5 @@ func AddFolder(targetLocation string) {
}
}
// TODO If in online mode, create the directory on the server
os.Exit(0)
}