- Issue created by @vinmassaro
- Status changed to Postponed: needs info
8 months ago 8:59pm 23 October 2023 - πΊπ¦Ukraine abramm Lutsk
Hi @vinmassaro,
Do you have an example of the ZIP file?
- Status changed to Active
8 months ago 9:04pm 23 October 2023 - πΊπΈUnited States vinmassaro
@abramm thanks for the quick reply. You can test the generated zip from this URL: https://github.com/yalesites-org/yalesites-starterkit/zipball/main
- Status changed to Closed: works as designed
8 months ago 5:22am 24 October 2023 - πΊπ¦Ukraine abramm Lutsk
There's an extra directory in your ZIP file:
$ unzip -l ~/Downloads/yalesites-org-yalesites-starterkit-669a467.zip Archive: /home/abram/Downloads/yalesites-org-yalesites-starterkit-669a467.zip 669a467d14c0e9aba590fc5547ba00fe4cd9d894 Length Date Time Name --------- ---------- ----- ---- 0 2023-10-23 21:49 yalesites-org-yalesites-starterkit-669a467/ 79 2023-10-23 21:49 yalesites-org-yalesites-starterkit-669a467/README.md 0 2023-10-23 21:49 yalesites-org-yalesites-starterkit-669a467/assets/ 0 2023-10-23 21:49 yalesites-org-yalesites-starterkit-669a467/assets/2023-08/ 4557407 2023-10-23 21:49 yalesites-org-yalesites-starterkit-669a467/assets/2023-08/handsome-dan-ben-franklin.jpg 3071443 2023-10-23 21:49 yalesites-org-yalesites-starterkit-669a467/assets/2023-08/yale-brick-in-wall-detail.jpg 0 2023-10-23 21:49 yalesites-org-yalesites-starterkit-669a467/assets/2023-09/ ... 1112 2023-10-23 21:49 yalesites-org-yalesites-starterkit-669a467/block_content-callout-b308554c-94f2-40d5-8b3c-5e97c0d05e08.yml
The paths inside ZIP file should be just
assets/2023-08/handsome-dan-ben-franklin.jpg
,block_content-callout-b308554c-94f2-40d5-8b3c-5e97c0d05e08.yml
etc and there shouldn't be extra parent directory.
From what I'm seeing, the module was always expecting this structure.I'm going to close this issue as it's working as designed, feel free to reopen if you still think this is a bug.
- Status changed to Active
8 months ago 7:15pm 24 October 2023 - πΊπΈUnited States vinmassaro
Expanding both zip files on MacOS was giving me the same result and I realize now is because it is opinionated in how it unzips files. I can see the difference now when using
unzip
at the command line. I will look at making sure we generate this zip file without the nested subdirectory. Thanks! - Status changed to Closed: works as designed
8 months ago 7:47pm 24 October 2023