FsMetadata
Metadata about a filesystem as a whole.
Returned by fs_metadata,
Path.fs_metadata, and
File.fs_metadata. For metadata about a single file
entry, use Metadata.
Accessing a field that does not apply to the target platform raises
FieldError.
Fields
available @ IntFree space available to the current process in bytes.
block_size @ (Int | nil)Filesystem block size in bytes when available.
blocks @ IntTotal data blocks. Unix only.
blocks_available @ IntFree data blocks available to unprivileged users. Unix only.
blocks_free @ IntFree data blocks, including reserved blocks. Unix only.
capacity @ IntTotal filesystem capacity in bytes.
component_length_max @ IntMaximum path component length for the volume. Windows only.
files @ IntTotal file nodes. Unix only.
files_available @ IntFree file nodes available to unprivileged users. Unix only.
files_free @ IntFree file nodes. Unix only.
fragment_size @ IntFilesystem fragment size in bytes. Unix only.
free @ IntTotal free space in bytes, including space reserved from unprivileged users.
freebsd_attrs @ IntRaw FreeBSD filesystem mount attribute mask. Unix only.
fsid @ (Int | nil)Raw filesystem identifier when the platform reports one. Unix only.
linux_attrs @ IntRaw Linux filesystem mount attribute mask. Unix only.
macos_attrs @ IntRaw macOS filesystem mount attribute mask. Unix only.
name_max @ IntMaximum filename length. Unix only.
no_atime @ BoolWhether access time updates are disabled. Unix only.
no_dev @ BoolWhether device files are disabled. Unix only.
no_dir_atime @ BoolWhether directory access time updates are disabled. Unix only.
no_exec @ BoolWhether execution is disabled. Unix only.
no_suid @ BoolWhether setuid execution is disabled. Unix only.
read_only @ BoolWhether the filesystem is mounted read-only.
relatime @ BoolWhether relative-atime updates are enabled. Unix only.
synchronous @ BoolWhether writes are synchronous. Unix only.
volume_serial_number @ IntRaw Windows volume serial number. Windows only.
win_flags @ IntRaw Windows volume flags. Windows only.