On this page
posix.fstatvfs
Prev: posix.fstat | Up: posix | Next: posix.fsync
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.fstatvfs
Tags: #public #python3 #stdlib #posix
Import
import posix
from posix import fstatvfs
Signature & Overview
posix.fstatvfs(fd, /)
Perform an fstatvfs system call on the given fd.
Usage
import os, tempfile
with tempfile.TemporaryFile() as f:
assert os.fstatvfs(f.fileno()).f_frsize > 0
Gotchas
- Unix-only: Prefer
shutil.disk_usage()for portable disk stats.
REPL Inspect
from posix import fstatvfs
help(fstatvfs)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/fstat Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/fsync Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/abort Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chflags Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chmod shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chown shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chroot shared tags: #posix, #stdlib