public void AddFiles(ZipFolderRequest request) { if (!Directory.Exists(request.RootDirectory)) return; if (request.FileSet == null) return; request.WriteToZipFile(this); }
public bool Equals(ZipFolderRequest other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.FileSet, FileSet) && Equals(other.RootDirectory, RootDirectory) && Equals(other.ZipDirectory, ZipDirectory); }
public void AddFiles(ZipFolderRequest request) { if (!Directory.Exists(request.RootDirectory)) { return; } request.WriteToZipFile(this); }
public bool Equals(ZipFolderRequest other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.FileSet, FileSet) && Equals(other.RootDirectory, RootDirectory) && Equals(other.ZipDirectory, ZipDirectory)); }
public void AddFiles(ZipFolderRequest request) { ZipRequests.Add(request); }
public void SetUp() { if (Directory.Exists("zip")) { Directory.Delete("zip", true); } Directory.CreateDirectory("zip"); theRequest = new ZipFolderRequest { FileSet = new FileSet(), RootDirectory = Path.GetFullPath("zip"), ZipDirectory = string.Empty }; }