Skip to content
Auto
Products

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 var 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 var fileSystem = TagBites.IO.Zip.ZipFileSystem.Create(fullName, "secret");
// ... using like standard file system

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

  • Synchronous operations, with direct stream access.
  • Metadata: last write time only.
  • The whole archive is a single file, so concurrent writers are not supported - use one FileSystem instance per archive.
  • Optional password. The strength depends on the encryption the archive uses.

Full implementation on github: TagBites.IO.Zip.