realpath

File.realpath(pathname [, dir_string]) â real_pathname Class Public methods Returns the real (absolute) pathname of pathname in the actual filesystem not containing symlinks or useless dots. If dir_string is given, it is used as a base directory for interpreting relative pathname instead of the current directory. All components of the pathname must exist when this method is called.

rename

File.rename(old_name, new_name) â 0 Class Public methods Renames the given file to the new name. Raises a SystemCallError if the file cannot be renamed. File.rename("afile", "afile.bak") #=> 0

setgid?

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

setuid?

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

size

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

size?

File.size?(file_name) â Integer or nil Class 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.

socket?

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

split

File.split(file_name) â array Class Public methods Splits the given string into a directory and a file component and returns them in a two-element array. See also File::dirname and File::basename. File.split("/home/gumby/.profile") #=> ["/home/gumby", ".profile"]

stat

File.stat(file_name) â stat Class Public methods Returns a File::Stat object for the named file (see File::Stat). File.stat("testfile").mtime #=> Tue Apr 08 12:58:04 CDT 2003

sticky?

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