NaviServer Programmable Web Server

ns_normalizepath(n)

NaviServer Built-in Commands – 5.0.0a


[ Main Table Of Contents | Table Of Contents | Keyword Index ]

Name

ns_normalizepath - Normalize a path

Table Of Contents

Synopsis

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

COMMANDS

ns_normalizepath path

See Also

nsd

Keywords

Tcl file normalize, global built-in