utils.file

namespace file

a collection of file utility functions

Summary


Public Methods


getBasename file.js:12
getBasename(path: string) → {string}

return the base name of the file without path info

Parameters:
Name Type Description
path string

path containing the basename to extract

Returns:
Type Description
string

the base name without path information.

getExtension file.js:36
getExtension(path: string) → {string}

return the extension of the file in the given path

Parameters:
Name Type Description
path string

path containing the filename and extension to extract

Returns:
Type Description
string

filename extension.

getPath file.js:24
getPath(path: string) → {string}

return the path of the file

Parameters:
Name Type Description
path string

the copmplete file path to extract the path from

Returns:
Type Description
string

the extracted path


Powered by webdoc!