Toby Chui 1 ano atrás
pai
commit
63cb66fb41
1 arquivos alterados com 1 adições e 0 exclusões
  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, "  ", " ")
 	}