D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
File
/
Filename :
expand_path-c.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Converts a pathname to an absolute pathname. Relative paths are referenced from the current working directory of the process unless <em>dir_string</em> is given, in which case it will be used as the starting point. The given pathname may start with a ``<tt>~</tt>'', which expands to the process owner's home directory (the environment variable <tt>HOME</tt> must be set correctly). ``<tt>~</tt><em>user</em>'' expands to the named user's home directory. - !ruby/struct:SM::Flow::VERB body: " File.expand_path("~oracle/bin") #=> "/home/oracle/bin"\n File.expand_path("../../bin", "/tmp/x") #=> "/bin"\n" full_name: File::expand_path is_singleton: true name: expand_path params: | File.expand_path(file_name [, dir_string] ) -> abs_file_name visibility: public