Dear BaseX team,
a question concerning the reading of archive files (e.g. .zip) via archive:entries.
If I don't overlook something, the read function archive:entries returns one <archive:entry> per file contained in the archive. Folders containing files (directly or recursively) can be inferred, but empty folders cannot be inferred, and therefore it is not possibly to extract the contents of archives in a reliably complete way: any empty folders are ignored.
Is that correct? If so, are there plans to add support for the retrieval of empty folders? Personally, I think the ability to unpack archives completely is important, for example because subsequent operations may fail in the absence of the expected folder. One conceivable solution would be to return for each empty folder an entry with an additional attribute:
<archive:entry isFolder="true" .../>.
Cheers,
Hans-Jürgen