executable_real?

stat.executable_real? â true or false Instance Public methods Same as executable?, but tests using the real owner of the process.

executable?

stat.executable? â true or false Instance Public methods Returns true if stat is executable or if the operating system doesn't distinguish executable files from nonexecutable files. The tests are made using the effective owner of the process. File.stat("testfile").executable? #=> false

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?(".")

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

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

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

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

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

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

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