archive
archive copied to clipboard
Delete files in an archive
Is it possible to delete or replace an ArchiveFile
inside Archive
.
I tried this
Archive archive = ZipDecoder().decodeBytes(data.buffer
.asUint8List(data.offsetInBytes, data.lengthInBytes));
archive.addFile(ArchiveFile(
"path/file.xml",
newFile.lengthInBytes,
newFile.buffer.asUint8List(
newFile.offsetInBytes,
newFile.lengthInBytes,
),
)..compress = false);
This creates a duplicate file instead of overwriting the existing file in path "path/file.xml".
Any updates? Deleting files is very important for me