Toby Chui 1 жил өмнө
parent
commit
36edf9f6ec

+ 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")
 	}