sticky?

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

socket?

File.socket?(file_name) â true or false Instance Public methods Returns true if the named file is a socket. 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.

size

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

setuid?

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

setgid?

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

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.

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.

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.

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.