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.

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

owned?

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

pipe?

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

readable?

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

readable_real?

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

setgid?

File.setgid?(file_name) â true or false Instance Public methods Returns true if the named file has the setgid bit set.

setuid?

File.setuid?(file_name) â true or false Instance Public methods Returns true if the named file has the setuid bit set.

size

File.size(file_name) â integer Instance Public methods Returns the size of file_name. file_name can be an IO object.

size?

File.size?(file_name) â Integer or nil Instance Public methods Returns nil if file_name doesn't exist or has zero size, the size of the file otherwise. file_name can be an IO object.