str::path::relative
relative(basePath: String, entirePath: String)
| Parameter | Type | Description |
|---|---|---|
| basePath | String | |
| entirePath | String |
Returns
(String) A relative version of 'entirePath' without the base path
Example
elk
str::path::relative("/a/b", "/a/b/c") #=> "c"str::path::relative("/a/b", "/a/b/c") #=> "c"