Answer the question
In order to leave comments, you need to log in
How to add a folder to the archive that is not on the disk?
There is a task to create zip-archives containing a tree of folders with files. But one caveat, these folders are not on the disk, there are only files with different names, and the tree is contained in the database.
I tried to use the standard zipfile, but when I tried to call the write method, I got an error that there is no such folder on the disk.
Please tell me how to solve this problem.
Answer the question
In order to leave comments, you need to log in
And what prevents you from first creating the desired folder tree with files, and then zipping it?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question