Product SiteDocumentation Site

5.4.25.7. absolutePath


>>-absolutePath------------------------------------------------><

Returns the fully qualified path as a string.

Example 5.205. Class FILE - absolutePath method


/* On Windows */
'cd c:\program files\oorexx'
say .File~new("my file")~absolutePath~class        -- The String class
say .File~new("my file")~absolutePath              -- c:\program files\oorexx\my file
say .File~new("..\my file")~absolutePath           -- c:\program files\my file
say .File~new("..\..\my file")~absolutePath        -- c:\my file
say .File~new("..\..\my dir\my file")~absolutePath -- c:\my dir\my file

/* On Linux */
'cd /opt/ooRexx'
say .File~new("my file")~absolutePath              -- /opt/ooRexx/my file
say .File~new("../my file")~absolutePath           -- /opt/my file