mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-05 08:37:20 -04:00
Remove pre-existing config directory during init, structure Windows config directory more similarly to UNIX
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ func main() {
|
|||||||
// register a new device ID
|
// register a new device ID
|
||||||
os.Create(backend.ConfigDir + backend.PathSeparator + "devices" + backend.PathSeparator + args[2])
|
os.Create(backend.ConfigDir + backend.PathSeparator + "devices" + backend.PathSeparator + args[2])
|
||||||
case "init":
|
case "init":
|
||||||
// create the necessary directories for libmuttonserver to function TODO consider clearing out old directories first
|
// create the necessary directories for libmuttonserver to function
|
||||||
backend.DirInit()
|
backend.DirInit()
|
||||||
os.MkdirAll(backend.ConfigDir+backend.PathSeparator+"deletions", 0700)
|
os.MkdirAll(backend.ConfigDir+backend.PathSeparator+"deletions", 0700)
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user