Class Sys::Filesystem::Stat
In: lib/unix/sys/filesystem.rb
lib/windows/sys/filesystem.rb
Parent: Object

Stat objects are returned by the Sys::Filesystem.stat method.

Methods

new  

Constants

RDONLY = 1   Read-only filesystem
NOSUID = 2   Filesystem does not support suid or sgid semantics.
NOTRUNC = 3   Filesystem does not truncate file names longer than name_max.

External Aliases

files -> inodes
files_free -> inodes_free
files_available -> inodes_available
files -> inodes
files_free -> inodes_free
files_available -> inodes_available

Attributes

base_type  [R]  The file system type, e.g. NTFS, FAT, etc.
base_type  [RW]  The filesystem type, e.g. UFS.
block_size  [R]  The file system block size. MS Windows typically defaults to 4096.
block_size  [RW]  The preferred system block size.
blocks  [RW]  The total number of fragment_size blocks in the filesystem.
blocks  [R]  The total number of blocks available (used or unused) on the file system.
blocks_available  [RW]  The number of free blocks available to unprivileged processes.
blocks_available  [R]  The total number of unused blocks available to unprivileged processes. Identical to blocks at the moment.
blocks_free  [RW]  The total number of free blocks in the filesystem.
blocks_free  [R]  The total number of unused blocks.
files  [RW]  The total number of files/inodes that can be created.
files  [R]  Total number of files/inodes that can be created on the file system. This attribute is always nil on MS Windows.
files_available  [RW]  The number of free files/inodes available to unprivileged processes.
files_available  [R]  Total number of available files/inodes for unprivileged processes that can be created on the file system. This attribute is always nil on MS Windows.
files_free  [RW]  The total number of files/inodes on the filesystem.
files_free  [R]  Total number of free files/inodes that can be created on the file system. This attribute is always nil on MS Windows.
filesystem_id  [RW]  The filesystem identifier.
filesystem_id  [R]  The file system volume id.
flags  [R]  A bit mask of file system flags.
flags  [RW]  A bit mask of flags.
fragment_size  [R]  Fragment size. Meaningless at the moment.
fragment_size  [RW]  The fragment size, i.e. fundamental filesystem block size.
name_max  [RW]  The maximum length of a file name permitted on the filesystem.
name_max  [R]  The maximum length of a file name permitted on the file system.
path  [R]  The path of the file system.
path  [RW]  The path of the filesystem.

Public Class methods

Creates a new Sys::Filesystem::Stat object. This is meant for internal use only. Do not instantiate directly.

[Validate]