public static RelativeFilePath AddExtension(this RelativeFilePath self, string extension) { return(self.BasePath / self.Name.AddExtension(extension)); }
public static IFilePath Parse(string relativeOrAbsolutePath) { return(Path.IsPathRooted(relativeOrAbsolutePath) ? (IFilePath)AbsoluteFilePath.Parse(relativeOrAbsolutePath) : (IFilePath)RelativeFilePath.Parse(relativeOrAbsolutePath)); }