Toby Chui 1 년 전
부모
커밋
63cb66fb41
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      mod/filesystem/static.go

+ 1 - 0
mod/filesystem/static.go

@@ -297,6 +297,7 @@ func GetDirectorySizeNative(filename string) (int64, error) {
 	//We need to trim off the spaces
 	tmp := string(out)
 	tmp = strings.TrimSpace(tmp)
+	tmp = strings.ReplaceAll(tmp, "\t", " ")
 	for strings.Contains(tmp, "  ") {
 		tmp = strings.ReplaceAll(tmp, "  ", " ")
 	}