What is an Atmosphere account?
By logging in you agree to the terms, privacy policy and community guidelines.
Don't have an account? Create one
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//go:build unix package diskusage import ( "io/fs" "syscall" ) func allocated(fi fs.FileInfo) int64 { if st, ok := fi.Sys().(*syscall.Stat_t); ok { return int64(st.Blocks) * 512 } return fi.Size() }