goog.string.path
Namespace.basename(path)
Returns the final component of a pathname. See http://docs.python.org/library/os.path.html#os.path.basename
path
{string
}
string
}
.dirname(path)
Returns the directory component of a pathname. See http://docs.python.org/library/os.path.html#os.path.dirname
path
{string
}
string
}
.join(var_args)
Joins one or more path components (e.g. 'foo/' and 'bar' make 'foo/bar'). An absolute component will discard all previous component. See http://docs.python.org/library/os.path.html#os.path.join
var_args
{...string
}
string
}
.normalizePath(path)
Normalizes a pathname by collapsing duplicate separators, parent directory references ('..'), and current directory references ('.'). See http://docs.python.org/library/os.path.html#os.path.normpath
path
{string
}
string
}
.split(path)
Splits a pathname into "dirname" and "basename" components, where "basename" is everything after the final slash. Either part may return an empty string. See http://docs.python.org/library/os.path.html#os.path.split
path
{string
}
Array
.<string
>}