public override PathName Combine(PathName child) { if (child is AbsolutePathName) throw new InvalidOperationException("Cannot combine an absolute path with a zip path"); if (child is ZipPathName) throw new IOException("Cannot combine a zip file path with a zip file path"); return new ZipPathName(_zipFilePath, Path.Combine(_contentFilePath, child.GetPath())); }
public static DirectoryName GetDirectoryName(PathName pathName) { return GetDirectoryName(pathName.GetPath()); }