fs Module
absolute-path
'sym ⇒ str
Returns the absolute path to 'sym.
absolute-path?
'sym ⇒ bool
Returns true if 'sym is an absolute path.
atime
'sym ⇒ flt
Returns a timestamp corresponding to the time that file/directory 'sym was last accessed.
ctime
'sym ⇒ flt
Returns a timestamp corresponding to the time that file/directory 'sym was created.
dirname
'sym ⇒ str
Returns the path of the directory containing path 'sym.
dir?
'sym ⇒ bool
Returns true if the specified path 'sym exists and is a directory.
exists?
'sym ⇒ bool
Returns true if the specified file or directory 'sym exists.
expand-filename
'sym ⇒ str
Returns the absolute path to the file name 'sym.
expand-symlink
'sym ⇒ str
Returns the absolute path to the symlink 'sym (an error is raised if 'sym is not a symlink).
file?
'sym ⇒ bool
Returns true if the specified path 'sym exists and is a file.
filename
'sym ⇒ str
Returns the file name of path 'sym.
fperms
'sym ⇒ int
Returns the Unix permissions (expressed as a three-digit number) of file/directory 'sym.
fsize
'sym ⇒ int
Returns the size in bytes of file/directory 'sym.
fstats
'sym ⇒ dict
Returns a dictionary dict containing information on file/directory 'sym.
ftype
'sym ⇒ str
Returns the type of file/directory 'sym ("file" or "dir").
hidden?
'sym ⇒ bool
Returns true if file/directory 'sym is hidden, false otherwise.
join-path
quot ⇒ str
Joins the strings contained in quot with /.
normalized-path
'sym ⇒ str
Returns the normalized path to 'sym.
mtime
'sym ⇒ flt
Returns a timestamp corresponding to the time that file/directory 'sym was last modified.
relative-path
'sym1 'sym2 ⇒ str
Returns the path of 'sym1 relative to 'sym2.
symlink?
'sym ⇒ bool
Returns true if the specified path 'sym exists and is a symbolic link.
unix-path
'sym ⇒ str
Converts all backslashes in 'sym to slashes.
windows-path
'sym ⇒ str
Converts all slashes in 'sym to backslashes.