atime

stat.atime â time Instance Public methods Returns the last access time for this file as an object of class Time. File.stat("testfile").atime #=> Wed Dec 31 18:00:00 CST 1969

blksize

stat.blksize â integer or nil Instance Public methods Returns the native file system's block size. Will return nil on platforms that don't support this information. File.stat("testfile").blksize #=> 4096

blockdev?

stat.blockdev? â true or false Instance Public methods Returns true if the file is a block device, false if it isn't or if the operating system doesn't support this feature. File.stat("testfile").blockdev? #=> false File.stat("/dev/hda1").blockdev? #=> true

blocks

stat.blocks â integer or nil Instance Public methods Returns the number of native file system blocks allocated for this file, or nil if the operating system doesn't support this feature. File.stat("testfile").blocks #=> 2

chardev?

stat.chardev? â true or false Instance Public methods Returns true if the file is a character device, false if it isn't or if the operating system doesn't support this feature. File.stat("/dev/tty").chardev? #=> true

ctime

stat.ctime â aTime Instance Public methods Returns the change time for stat (that is, the time directory information about the file was changed, not the file itself). Note that on Windows (NTFS), returns creation time (birth time). File.stat("testfile").ctime #=> Wed Apr 09 08:53:14 CDT 2003

dev

stat.dev â fixnum Instance Public methods Returns an integer representing the device on which stat resides. File.stat("testfile").dev #=> 774

dev_major

stat.dev_major â fixnum Instance Public methods Returns the major part of File_Stat#dev or nil. File.stat("/dev/fd1").dev_major #=> 2 File.stat("/dev/tty").dev_major #=> 5

dev_minor

stat.dev_minor â fixnum Instance Public methods Returns the minor part of File_Stat#dev or nil. File.stat("/dev/fd1").dev_minor #=> 1 File.stat("/dev/tty").dev_minor #=> 0

directory?

File.directory?(file_name) â true or false Instance Public methods Returns true if the named file is a directory, or a symlink that points at a directory, and false otherwise. file_name can be an IO object. File.directory?(".")