Toby Chui пре 1 година
родитељ
комит
36edf9f6ec
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      mod/filesystem/static.go

+ 1 - 1
mod/filesystem/static.go

@@ -302,7 +302,7 @@ func GetDirectorySizeNative(filename string) (int64, error) {
 	}
 
 	chunks := strings.Split(tmp, " ")
-	if len(chunks) != 2 {
+	if len(chunks) <= 1 {
 		fmt.Println(chunks)
 		return 0, errors.New("malformed output")
 	}