stripPrefix method
Returns a path that, when joined onto base, yields this. Returns None if prefix
is not a subpath of base.
Implementation
Option<Path> stripPrefix(Path prefix) => isWindows
? WindowsPath(_string).stripPrefix(WindowsPath(prefix._string)).map((e) => Path(e._string))
: UnixPath(_string).stripPrefix(UnixPath(prefix._string)).map((e) => Path(e._string));