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 ...

Get Python: Essential Reference, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.