Construct an object that gives information about volume on which the provided path is located.
Refresh cached info.
Free space available for the current user. This is what most tools and GUI applications show as free space.
Free space in a volume Note: This is size of free space in a volume, but actual free space available for the current user may be smaller.
Total volume size.
Device string, e.g. /dev/sda on Linux and volume guid on Windows.
Whether the object is valid (specified path exists).
Name of volume. Empty string if volume label could not be retrieved. In case the label is empty you may consider using the base name of volume path as a display name, possible in combination with type.
Root path of file system (mountpoint of partition).
Whether the referenced filesystem is marked as readonly.
Whether the filesystem is ready for work.
File system type, e.g. ext4 on Linux or NTFS on Windows.
Represents a filesystem volume. Provides information about mountpoint, filesystem type and storage size. All values except for VolumeInfo.path are retrieved on the first demand and then getting cached. Use VolumeInfo.refresh to refresh info.