-
Notifications
You must be signed in to change notification settings - Fork 232
Description
This allows specifying other filesystems during archive export, e.g., mounted ones. These filesystems might be larger than what's available on /tmp/ which is currently used as the default location for the temporary directory while the archive is being created. Thus, especially for large AiiDA projects, this change can make archive creation possible which otherwise would fail due to space limitations.
The relevant change can be implemented here:
aiida-core/src/aiida/tools/archive/create.py
Lines 286 to 287 in b2a6e21
| with tempfile.TemporaryDirectory() as tmpdir: | |
| tmp_filename = Path(tmpdir) / 'export.zip' |
The TemporaryDirectory class actually takes a dir argument that serves as the base path for the temporary directory. Exposing this to the user, and possibly adding some validation can probably solve this issue.
Would this fix the problems you were encountering, @abmazitov?
Ping @mbercx
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Status