Object
Stat objects are returned by the Sys::Filesystem.stat method.
Filesystem does not support suid or sgid semantics.
Filesystem does not truncate file names longer than name_max.
Read-only filesystem
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 314 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
Returns the total amount of free space on the partition.
# File lib/unix/sys/filesystem.rb, line 336 def bytes_free blocks_available * block_size end
Returns the total space on the partition.
# File lib/unix/sys/filesystem.rb, line 331 def bytes_total blocks * block_size end
Generated with the Darkfish Rdoc Generator 2.