go-disk-usage icon indicating copy to clipboard operation
go-disk-usage copied to clipboard

Get disk usage information like how much space is available, free, and used

Results 8 go-disk-usage issues
Sort by recently updated
recently updated
newest added

Hi, I try to build a project using `du` library on FreeBSD, but because of mess in `stat` structure across platforms, there is a problem with `int64` vs `uint64`. Thus...

The du folder has its own go.mod file and is therefore a separate module, which means that it cannot be updated based on existing tags. Therefoure, `go get -u github.com/ricochet2200/go-disk-usage/[email protected]`...

On Ubuntu 20.04, the numbers it produces are all the same. IE, Free(), Available(), Size() and Used() all produce the same output. These numbers do not match the output of...

Add a new function to also return any error encountered when fetching the disk usage, to be able to debug.

⨯ release failed after 2m59s error=failed to build for freebsd_arm_6: exit status 1: # github.com/ricochet2200/go-disk-usage/du Error: ../../../go/pkg/mod/github.com/ricochet2200/go-disk-usage/[email protected]/diskusage.go:28:9: invalid operation: du.stat.Bavail * uint64(du.stat.Bsize) (mismatched types int64 and uint64) Error: The process...

The syscall is not error checked, thus issues with it can only be derived from getting incorrect results

According to syscalls readme, it has been deprecated in favor of the golang.org/x/sys repository. This PR replaces syscall usage with x/sys