Beispiel #1
0
        protected override void ExecuteAction(IFileActionInfo fileActionInfo)
        {
            SourceTargetFilterFileInfo zipFile = fileActionInfo as SourceTargetFilterFileInfo;

            zip.ExtractZip(zipFile.SourceFileName, zipFile.TargetPath, zipFile.FilterFiles);
            foreach (SourceFileInfo f in files)
            {
                f.LockOnExecute(Locker);
            }
        }
Beispiel #2
0
        protected override void ExecuteAction(IFileActionInfo fileActionInfo)
        {
            SourceTargetFilterFileInfo zipFile = fileActionInfo as SourceTargetFilterFileInfo;

            zip.CreateZip(zipFile.SourceFileName, zipFile.TargetPath, _recurse, zipFile.FilterFiles);
        }
Beispiel #3
0
 public CompressFilesAction(string zipFileName, string targetPath, string fileFilter, bool recurse)
 {
     initZipEvents();
     _fileActionInfo = new SourceTargetFilterFileInfo(zipFileName, targetPath, fileFilter);
     _recurse        = recurse;
 }
Beispiel #4
0
 public ExtractFilesAction(string zipFileName, string targetPath, string fileFilter)
 {
     initZipEvents();
     _fileActionInfo = new SourceTargetFilterFileInfo(zipFileName, targetPath, fileFilter);
 }