ad_make_relative_path (public)

 ad_make_relative_path path

Defined in packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl

Returns the relative path corresponding to absolute path $path.

Parameters:
path (required)

Testcases:
ad_library, apm_source
Source code:
    set root_length [string length $::acs::rootdir]
    if { $::acs::rootdir eq [string range $path 0 $root_length-1] } {
        return [string range $path $root_length+1 [string length $path]]
    }
    error "$path is not under the path root ($::acs::rootdir)"
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: