소스 검색

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)