to_path() public

Returns the pathname used to create file as a string. Does not normalize the name.

The pathname may not point to the file corresponding to file. For instance, the pathname becomes void when the file has been moved or deleted.

This method raises IOError for a file created using File::Constants::TMPFILE because they don’t have a pathname."testfile").path               #=> "testfile""/tmp/../tmp/xxx", "w").path   #=> "/tmp/../tmp/xxx"
Show source
Register or log in to add new notes.