*! version 0.13.03 6mar2013
help normalizepath

Title

normalizepath -- Stata module to parse (and normalize) files' paths

Syntax

normalizepath filename

Description

normalizepath parses a filename and returns (in r()) the file
name, extension, location (directory) and fullpath.

Examples

. normalizepath ../myfile.dta

. normalizepath "~/thisfile.do"

. normalizepath thatfile.mata

Saved results

normalizepath saves the following in r():

Locals

r(myfile) Entered filename

r(fullpath) Resulting fullpath

r(fileext) File extension

r(filedir) File location (directory)

Author

George Vega Yon, Superindentencia de Pensiones. mailto:gvega@spensiones.cl

Also see

mata pathjoin, confirm