Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

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