瀏覽代碼

Fixed root path missing slash bug

Toby Chui 3 年之前
父節點
當前提交
4359df5095
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)