Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Copy Items to ZipFIle

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • maklei
    Participant
    Post count: 1
    #44463 |

    Hi,

    I try to zip a folder with the sample code provide in the documentation, the zipfile is created but it’s empty file.

    using Xceed.Zip;
    using Xceed.FileSystem;

    DiskFolder diskFolder = new DiskFolder( @”c:\temp” );
    diskFolder.CopyFilesTo( new ZipArchive( new DiskFile( @”c:\test.zip” ) ), true, true );

    can you please help me to understand why the zip is empty?

    thanks.

    redserpent7
    Participant
    Post count: 3

    I have the same exact issue, it seems that the whole CopyTo/CopyFilesTo does not work both ways. I cannot extract files from a zip and cannot add them to the archive.

    Even the provided ZipDemoCS sample application does work and no exceptions are getting raised.

    Streaming seems to work fine.

    Fawzi [Xceed]
    Moderator
    Post count: 648

    Hi,

    There is a bug in the component that has since been fixed in the latest version. You can download the latest build from our website from the following link:

    https://xceed.com/latest-net-libraries

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.