Toby Chui 1 年之前
父节点
当前提交
dc4df98202
共有 1 个文件被更改,包括 2 次插入0 次删除
  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")
 	}