Rob Solomon
Rob Solomon
package main import ( "fmt" "github.com/ricochet2200/go-disk-usage/du" "os" "runtime" "strings" "unicode" ) func main() { if len(os.Args) < 2 { fmt.Println(" Usage: diskusage [/dev/sdX] | [drive:]") os.Exit(1) } volumePath := ""...
Of course, the site removed my indentations. But gofmt would restore those, I guess. I never tested it on windows, though I did write code to be able to.
My point is that the usage.Free() returned from the Go function is off by 3 orders of magnitude from the output of the linux df command. So I don't understand...
I want to add that there needs to be a way to not follow other filesystems that are mounted, perhaps by not following any symlinks or mount points Like the...