Skip to content
Auto
TagBites.IO

ZIP file system

This file system provides implementation for file system based on the ZIP file structure using SharpZipLib library.

var fullName = "C:/test.zip";
using(FileSystem fileSystem = TagBites.IO.Zip.ZipFileSystem.Create(fullName))
{
// ... using like standard file system
}

If the .zip file does not exist yet, it is created on first write. An optional password parameter encrypts/decrypts the archive content:

using(FileSystem fileSystem = TagBites.IO.Zip.ZipFileSystem.Create(fullName, "secret"))
{
// ... using like standard file system
}

Remember to use using statement or call Dispose method after usage.

Full implementation on github: TagBites.IO.Zip.