Explorar o código

Fixed root path missing slash bug

Toby Chui %!s(int64=3) %!d(string=hai) anos
pai
achega
4359df5095
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      file_system.go

+ 1 - 1
file_system.go

@@ -143,7 +143,7 @@ func FileSystemInit() {
 	})
 
 	//Create user root if not exists
-	err := os.MkdirAll(*root_directory+"users/", 0755)
+	err := os.MkdirAll(filepath.Join(*root_directory, "users/"), 0755)
 	if err != nil {
 		systemWideLogger.PrintAndLog("File System", "Failed to create system storage root", err)
 		panic(err)