utils.file
namespace file
a collection of file utility functions
Summary
Public Methods
getBasename(path: string) → {string}
return the base name of the file without path info
Name | Type | Description |
---|---|---|
path | string |
path containing the basename to extract |
Type | Description |
---|---|
string |
the base name without path information. |
getExtension(path: string) → {string}
return the extension of the file in the given path
Name | Type | Description |
---|---|---|
path | string |
path containing the filename and extension to extract |
Type | Description |
---|---|
string |
filename extension. |
getPath(path: string) → {string}
return the path of the file
Name | Type | Description |
---|---|---|
path | string |
the copmplete file path to extract the path from |
Type | Description |
---|---|
string |
the extracted path |