Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Behaviour between 3.5 to 6.1 not the same

Sort Posts: Previous Next
  •  07-10-2008, 4:47 AM Post no. 13490

    Behaviour between 3.5 to 6.1 not the same

    Hi,

    I have recently upgraded from version 3.5 to 6.1.  I followed the migration procedured outlined in the documentation.  Performing the zip method using version 3.5 and 6.1 does not yield the same files in the zip files.

    • .Recurse = True  ----------------------> .ProcessSubfolders = True
    • .UsePaths = True ----------------------> .PreservePaths=True
    • .Add(xecAll) -----------------------------> .Zip 

    Attempting to zip the contents of c:\temp\*996663*

    3.5 - creates a zip file containing

    • Any files that match the pattern *996663* in c:\temp are zipped
    • Any folders/subfolders that match the pattern *996663* and all their contents are zipped

    6.1 - creates a zip file containing

    • Any files in c:\temp that match the pattern *996663*

    For 6.1 I subsequently modified the wildcard from c:\temp\*996663* to c:\temp\*996663*\*  which yielded better results

    6.1 - creates a zip file containing

    • Any folders/subfolders from c:\temp that match the pattern *996663* and all their contents are zipped
    • It does not zip any files from c:\temp that match the pattern *996663*

    Is there a way to check both files/folders in one step.  I am trying to minimise the amount of code change between both versions which will be helpful when it comes to the regressional testing.

     Your help will be much appreciated,

    Marlise Burke

     

  •  07-11-2008, 1:34 PM Post no. 13530 in reply to 13490

    Re: Behaviour between 3.5 to 6.1 not the same

    We were not able to reproduce your problem. We tested with a small sample that zips the following file/folder tree:

    D:\Temp\996663.txt
    D:\Temp\A996663A.txt
    D:\Temp\File1.txt
    D:\Temp\File2.txt
    D:\Temp\996663\996663
    D:\Temp\996663\BB996663A (1).txt
    D:\Temp\996663\BB996663A.txt
    D:\Temp\A996663A\_996663.txt
    D:\Temp\A996663A\__996663.txt
    D:\Temp\FolderA\File1.txt
    D:\Temp\FolderA\File2.txt
    D:\Temp\FolderA\_996663.txt
    D:\Temp\FolderA\__996663.txt

    The default values for the properties were used, except for these :

    // (C# code)
    this.Zip.ProcessSubfolders = true;
    this.Zip.PreservePaths = true;
    this.Zip.ZipFilename = "testArchive.zip";
    this.Zip.FilesToProcess = @"D:\Temp\*996663*";
    this.Zip.Zip();

    After the operation, the zip archive contained the following files:

    Temp\996663.txt
    Temp\A996663A.txt
    Temp\996663\996663
    Temp\996663\BB996663A (1).txt
    Temp\996663\BB996663A.txt
    Temp\A996663A\_996663.txt
    Temp\A996663A\__996663.txt
    Temp\FolderA\_996663.txt
    Temp\FolderA\__996663.txt

    André
    Software Developer and Tech Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.