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