Toby Chui 1 year ago
parent
commit
dc4df98202
1 changed files with 2 additions and 0 deletions
  1. 2 0
      mod/filesystem/static.go

+ 2 - 0
mod/filesystem/static.go

@@ -303,12 +303,14 @@ func GetDirectorySizeNative(filename string) (int64, error) {
 
 	chunks := strings.Split(tmp, " ")
 	if len(chunks) != 2 {
+		fmt.Println(chunks)
 		return 0, errors.New("malformed output")
 	}
 
 	//The first chunk should be the size in bytes
 	size, err := strconv.Atoi(chunks[0])
 	if err != nil {
+		fmt.Println(err.Error())
 		return 0, errors.New("malformed output")
 	}