mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Support selecting a compression type when exporting a project.
This commit is contained in:
1 parent
af80b0bb6e
commit
0ae66a2608
3 files changed
+20
-22
No files matched your search
@@ -96,6 +96,7 @@ class Snapshot:
|
||||
try:
|
||||
begin = time.time()
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
# Do not compress the snapshots
|
||||
with aiozipstream.ZipFile(compression=zipfile.ZIP_STORED) as zstream:
|
||||
await export_project(zstream, self._project, tmpdir, keep_compute_id=True, allow_all_nodes=True)
|
||||
async with aiofiles.open(self.path, 'wb') as f:
|
||||
|
||||
Reference in new issue
Block a user