Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.201 kb
// +build !windows
package main
import (
"syscall"
)
func filesystemFree() (uint64, error) {
fs := syscall.Statfs_t{}
err := syscall.Statfs(*root, &fs)
return fs.Bfree * uint64(fs.Bsize), err
}
Jump to Line
Something went wrong with that request. Please try again.