public ZipFileName(RelativePathName name) : base(name) { if (!Name.GetName().EndsWith(".zip")) { throw new Exception(string.Format("most be a zip file not a '{0}'", Name)); } }
public bool Include(RelativePathName fileName) { if (_ignorePatternsFile.GetPathMatcher().MatchFileName(fileName.RelativeName, SystemPathComparer.Instance)) { return(false); } return(_includePatternsFile.GetPathMatcher().MatchFileName(fileName.RelativeName, SystemPathComparer.Instance)); }
public FileName(DirectoryName parent, RelativePathName relativePathName) { if (parent == null) throw new ArgumentNullException("parent"); if (relativePathName.IsEmpty) throw new ArgumentException("Relative path is empty", "relativePathName"); _parent = parent; _relativePathName = relativePathName; }
public FileName(DirectoryName parent, RelativePathName relativePathName) { if (parent == null) { throw new ArgumentNullException("parent"); } if (relativePathName.IsEmpty) { throw new ArgumentException("Relative path is empty", "relativePathName"); } _parent = parent; _relativePathName = relativePathName; }
public ZipDirectoryName(RelativePathName pathName) : base(pathName) { }
public ZipFileName(RelativePathName name) : base(name) { if (!Name.GetName().EndsWith(".zip")) throw new Exception(string.Format("most be a zip file not a '{0}'", Name)); }
public static void GetFileSystemEntries(FullPathName rootPath, RelativePathName path, out IList<string> directories, out IList<string> files) { NativeFile.GetDirectoryEntries(PathHelpers.PathCombine(rootPath.FullName, path.RelativeName), out directories, out files); }