url/path_more_utils library
Properties
- pathSeparator → String
-
The forward-slash separator used by these path helpers.
no setter
Functions
-
isPathAbsolute(
String path) → bool -
Whether
pathis absolute — starts with/or has a drive letter (C:). -
parseBearerToken(
String authorizationHeader) → String? -
Extracts the token from a
Bearer <token>authorizationHeader. -
pathAppend(
String path, String segment) → String -
Joins
segmentontopathwith a single forward slash. -
pathBaseName(
String path) → String -
Returns the final segment of
path(the file or last directory name). -
pathCollapseSeparators(
String path) → String -
Collapses runs of
/or\inpathinto a single forward slash. -
pathDirectory(
String path) → String - URL/Path More: directory from path, base name, path separator, is absolute, etc. Roadmap #336-345.