string.path

Classes


Public Protected Private

Global Functions

goog.string.path.baseName(path) string
Returns the final component of a pathname. See http://docs.python.org/library/os.path.html#os.path.basename
Arguments:
path : string
A pathname.
Returns: string  path The final component of a pathname, i.e. everything after the final slash.
code »
goog.string.path.basename(path) string
Use goog.string.path.baseName. Alias to goog.string.path.baseName.
Arguments:
path : string
A pathname.
Returns: string  path The final component of a pathname.
code »
goog.string.path.dirname(path) string
Returns the directory component of a pathname. See http://docs.python.org/library/os.path.html#os.path.dirname
Arguments:
path : string
A pathname.
Returns: string  The directory component of a pathname, i.e. everything leading up to the final slash.
code »
goog.string.path.extension(path) string
Extracts the extension part of a pathname.
Arguments:
path : string
The path name to process.
Returns: string  The extension if any, otherwise the empty string.
code »
goog.string.path.join(var_args) string
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
Arguments:
var_args : ...string
One of more path components.
Returns: string  The path components joined.
code »
goog.string.path.normalizePath(path) string
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
Arguments:
path : string
One or more path components.
Returns: string  The path after normalization.
code »
goog.string.path.split(path) !Array.<string>
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
Arguments:
path : string
A pathname.
Returns: !Array.<string>  An array of [dirname, basename].
code »

Package string

Package Reference