removePrefix(_:)
If prefix is a prefix of self, removes it and returns true. Otherwise returns false.
Declaration
mutating func removePrefix(_ prefix: FilePath) -> BoolDiscussion
Example:
var path: FilePath = "/usr/local/bin"
path.removePrefix("/usr/bin") // false
path.removePrefix("/us") // false
path.removePrefix("/usr/local") // true, path is "bin"