Closed KBaluev closed 4 years ago
containingDirectory
== tmp_path
which is passed in to the function. unzip
expects that this folder already exists (this is done by fmu.cpp
internally).
Not sure if this change is required.. Could you elaborate on what error you encountered?
containingDirectory == tmp_path
This might not be true..
So the error happens if the unzipper encounters e.g. a afile.txt
located in resources
, but resources
has yet to be created?
containingDirectory == tmp_path
This might not be true..
So the error happens if the unzipper encounters e.g. a
afile.txt
located inresources
, butresources
has yet to be created?
Exactly this situation. I have encountered this behavior while creating an FMU manually via Win10 ZIP driver and also using the fmusdk
(https://github.com/qtronic/fmusdk) example outputs.
In case the FMU ZIP file tree doesn't have a directory entry for the file to be placed in the mentioned directory or the files/directories entries are out of order, the directory needs to be created for such a file.