path
stdlib::rss::path
Portable path separator, joining, basename, directory, and extension helpers.
Import
use stdlib::rss::path;
Functions
| Function | Description |
|---|---|
normalize_sep | Replaces backslashes with forward slashes in a path. |
join | Joins two path segments with a single separator. |
basename | Returns the final path segment. |
dirname | Returns the parent directory portion of a path. |
extname | Returns the file extension of a path. |
Function details
normalize_sep
pub fn normalize_sep(path: string) -> string
Replaces backslashes with forward slashes in a path.
join
pub fn join(lhs: string, rhs: string) -> string
Joins two path segments with a single separator.
basename
pub fn basename(path: string) -> string
Returns the final path segment.
dirname
pub fn dirname(path: string) -> string
Returns the parent directory portion of a path.
extname
pub fn extname(path: string) -> string
Returns the file extension of a path.