O'Reilly logo

Python: Essential Reference, Third Edition by David Beazley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

statvfs

The statvfs module defines constants used to interpret the result of the os.statvfs() function on UNIX. The constants defined in this module define the indices into the tuple returned by os.statvfs() for specific information. Constants are listed in the order that items commonly appear in the statvfs tuple.

ConstantDescription
F_BSIZEPreferred file system block size
F_FRSIZEFundamental file system block size
F_BLOCKSTotal number of blocks in the file system
F_BFREETotal number of free blocks
F_BAVAILFree blocks available to a non-superuser
F_FILESTotal number of file nodes
F_FFREETotal number of free file nodes
F_FAVAILFree nodes available to a non-superuser
F_FLAGFlags (system-dependent)
F_NAMEMAXMaximum filename length

See Also

os (p. 308), stat ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required