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 systemIf 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 systemRemember to use
usingstatement or callDisposemethod after usage.
Capabilities
Section titled “Capabilities”- 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
FileSysteminstance per archive. - Optional password. The strength depends on the encryption the archive uses.
Full implementation on github: TagBites.IO.Zip.