コード例 #1
0
ファイル: ZipPathName.cs プロジェクト: wbinford/nu
        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()));
        }
コード例 #2
0
ファイル: DirectoryName.cs プロジェクト: wbinford/nu
 public static DirectoryName GetDirectoryName(PathName pathName)
 {
     return GetDirectoryName(pathName.GetPath());
 }