Class RFuse::Stat
In: lib/rfuse.rb
Parent: Object

Helper class to return from :getattr method

Methods

directory   file   new  

Constants

S_IFMT = 0170000   Format mask
S_IFDIR = 0040000   Directory
S_IFCHR = 0020000   Character device
S_IFBLK = 0060000   Block device
S_IFREG = 0100000   Regular file
S_IFIFO = 0010000   FIFO.
S_IFLNK = 0120000   Symbolic link
S_IFSOCK = 0140000   Socket

Attributes

atime  [RW]  @return [Integer, Time] see stat(2)
blksize  [RW]  @return [Integer] see stat(2)
blocks  [RW]  @return [Integer] see stat(2)
ctime  [RW]  @return [Integer, Time] see stat(2)
dev  [RW]  @return [Integer] see stat(2)
gid  [RW]  @return [Integer] see stat(2)
ino  [RW]  @return [Integer] see stat(2)
mode  [RW]  @return [Integer] see stat(2)
mtime  [RW]  @return [Integer, Time] see stat(2)
nlink  [RW]  @return [Integer] see stat(2)
rdev  [RW]  @return [Integer] see stat(2)
size  [RW]  @return [Integer] see stat(2)
uid  [RW]  @return [Integer] see stat(2)

Public Class methods

@param [Fixnum] mode file permissions @param [Hash<Symbol,Fixnum>] values initial values for other attributes

@return [Stat] representing a directory

@param [Fixnum] mode file permissions @param [Hash<Symbol,Fixnum>] values initial values for other attributes

@return [Stat] representing a regular file

[Validate]