ns_normalizepath

Name

ns_normalizepath -- Normalize a path

Syntax

ns_normalizepath path

Description

ns_normalizepath removes any extraneous slashes from the path and resolves "." and ".." references. For example:

[ns_normalizepath /dog/cat/../.. /rat/../../dog//mouse/..]

returns:

/dog