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