logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

wml::sup::path - Filesystem Path Manipulation

Author

        Ralf S. Engelschall
        rse@engelschall.com
        www.engelschall.com

Description

       This include file provides the Perl functions "relpath", "canonpath" and "canonurl" which calculate
       relative and canonical paths/urls.  For example, the relative path from /foo/path/bar/quux to
       /foo/path/foobar is calculated to ../../foobar and the canonical path of ./foo/./bar/../quux// is
       foo/quux/.

Name

       wml::sup::path - Filesystem Path Manipulation

Requires

        Internal: P1, P3
        External: --

See Also

perl(1)

EN Tools                                           2020-11-29                                  wml::sup::path(3)

Synopsis

        #use wml::sup::path

        <: $relpath = relpath($from, $to); :>
        <: $path    = canonpath($path);    :>
        <: $url     = canonurl($url);      :>

See Also