symlink?

File.symlink?(file_name) â true or false Class Public methods Returns true if the named file is a symbolic link.

symlink

File.symlink(old_name, new_name) â 0 Class Public methods Creates a symbolic link called new_name for the existing file old_name. Raises a NotImplemented exception on platforms that do not support symbolic links. File.symlink("testfile", "link2test") #=> 0

sticky?

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

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

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"]

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.

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.

size

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

setuid?

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

setgid?

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