Parent

Methods

Sys::Filesystem::Stat

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

Constants

NOSUID

Filesystem does not support suid or sgid semantics.

NOTRUNC

Filesystem does not truncate file names longer than name_max.

RDONLY

Read-only filesystem

Attributes

base_type[RW]

The file system type, e.g. NTFS, FAT, etc.

block_size[RW]

The file system block size. MS Windows typically defaults to 4096.

blocks[RW]

The total number of blocks available (used or unused) on the file system.

blocks_available[RW]

The total number of unused blocks available to unprivileged processes. Identical to blocks at the moment.

blocks_free[RW]

The total number of unused blocks.

files[RW]

Total number of files/inodes that can be created on the file system. This attribute is always nil on MS Windows.

files_available[RW]

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]

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 file system volume id.

flags[RW]

A bit mask of file system flags.

fragment_size[RW]

Fragment size. Meaningless at the moment.

inodes[RW]

Total number of files/inodes that can be created on the file system. This attribute is always nil on MS Windows.

inodes_available[RW]

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.

inodes_free[RW]

Total number of free files/inodes that can be created on the file system. This attribute is always nil on MS Windows.

name_max[RW]

The maximum length of a file name permitted on the file system.

path[RW]

The path of the file system.

Public Class Methods

new() click to toggle source

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

# File lib/unix/sys/filesystem.rb, line 309
def initialize
  @path             = nil
  @block_size       = nil
  @fragment_size    = nil
  @blocks           = nil
  @blocks_free      = nil
  @blocks_available = nil
  @files            = nil
  @files_free       = nil
  @files_available  = nil
  @filesystem_id    = nil
  @flags            = nil
  @name_max         = nil
  @base_type        = nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.