realpath Returns canonicalized absolute pathname &reftitle.description; stringrealpath stringpath realpath expands all symbolic links and resolves references to '/./', '/../' and extra '/' characters in the input path and returns the canonicalized absolute pathname. &reftitle.parameters; path The path being checked. Whilst a path must be supplied, the value can be blank or &null; In these cases, the value is interpreted as the current directory. &reftitle.returnvalues; Returns the canonicalized absolute pathname on success. The resulting path will have no symbolic link, '/./' or '/../' components. realpath returns &false; on failure, e.g. if the file does not exist. The running script must have executable permissions on all directories in the hierarchy, otherwise realpath will return &false;. &fs.file.32bit; &reftitle.changelog; &Version; &Description; 5.3.0 Prior to this release, if only the last path component did not exist, realpath would not fail on *BSD systems. realpath now fails in this case. 5.0.0 Prior to this release, a blank or &null; path would cause realpath to return the directory name of the script. &reftitle.examples; <function>realpath</function> example ]]> &example.outputs; <function>realpath</function> on Windows On windows realpath will change unix style paths to windows style. ]]> &example.outputs; &reftitle.seealso; basename dirname pathinfo