On this page
posix.statvfs_result
Prev: posix.stat_result | Up: posix | Next: posix.terminal_size
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org โ posix.statvfs_result
Tags: #public #python3 #stdlib #posix
Import
import posix
from posix import statvfs_result
Signature & Overview
posix.statvfs_result(iterable=(), /)
statvfs_result: Result from statvfs or fstatvfs.
Methods & Attributes
statvfs_result.count(self, value, /)โ Return number of occurrences of value.statvfs_result.index(self, value, start=0, stop=9223372036854775807, /)โ Return first index of value.
Usage
import os
assert isinstance(os.statvfs('.'), os.statvfs_result)
Gotchas
- Unix-only: Prefer
shutil.disk_usage().
REPL Inspect
from posix import statvfs_result
help(statvfs_result)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/stat_result Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/terminal_size 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