identical?

File.identical?(file_1, file_2) â true or false Instance Public methods Returns true if the named files are identical. file_1 and file_2 can be an IO object. open("a", "w") {} p File.identical?("a", "a") #=> true p File.identical?("a", "./a") #=> true File.link("a", "b") p File.identical?("a", "b") #=> true File.symlink("a", "c") p File.identical?("a", "c") #=> true open("d", "w") {} p File.identical?("a", "d") #=> false

grpowned?

File.grpowned?(file_name) â true or false Instance Public methods Returns true if the named file exists and the effective group id of the calling process is the owner of the file. Returns false on Windows. file_name can be an IO object.

file?

File.file?(file_name) â true or false Instance Public methods Returns true if the named file exists and is a regular file. file_name can be an IO object.

exists?

File.exists?(file_name) â true or false Instance Public methods Return true if the named file exists. file_name can be an IO object. âfile existsâ means that stat() or fstat() system call is successful.

exist?

File.exist?(file_name) â true or false Instance Public methods Return true if the named file exists. file_name can be an IO object. âfile existsâ means that stat() or fstat() system call is successful.

executable_real?

File.executable_real?(file_name) â true or false Instance Public methods Returns true if the named file is executable by the real user id of this process.

executable?

File.executable?(file_name) â true or false Instance Public methods Returns true if the named file is executable by the effective user id of this process.

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

chardev?

File.chardev?(file_name) â true or false Instance Public methods Returns true if the named file is a character device. file_name can be an IO object.

blockdev?

File.blockdev?(file_name) â true or false Instance Public methods Returns true if the named file is a block device. file_name can be an IO object.