Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

UNZIP Community API not unzipping subdirectories #173

Closed
SCrid2000 opened this issue Jun 8, 2013 · 5 comments
Closed

UNZIP Community API not unzipping subdirectories #173

SCrid2000 opened this issue Jun 8, 2013 · 5 comments

Comments

@SCrid2000
Copy link

Not sure if this is a known limitation or not, but on 10.1 the UNZIP API is is only unzipping a file from the root of the .zip, and not the subfolders.
OS 10.1

@starpax
Copy link
Contributor

starpax commented Jun 9, 2013

Hi SCrid2000,
Could you attach the zip file so that I could try to reproduce the error? Or write out the .zip directory structure if that would be better.

Thanks!

@SCrid2000
Copy link
Author

It's the BFB resource folder lol. Here's a full directory listing.

Built for BlackBerry Brand Guidelines.pdf

Built for BlackBerry Icon Overlay
Built for BlackBerry Icon Overlay__MACOSX
Built for BlackBerry Icon Overlay__MACOSX\RIMM2147_IconOverlay
Built for BlackBerry Icon Overlay__MACOSX\RIMM2147_IconOverlay._.DS_Store
Built for BlackBerry Icon Overlay__MACOSX\RIMM2147_IconOverlay._RIMM2147_IconOverlay_1920x1186.png
Built for BlackBerry Icon Overlay__MACOSX\RIMM2147_IconOverlay._RIMM2147_IconOverlay_Curved480x480.png
Built for BlackBerry Icon Overlay__MACOSX\RIMM2147_IconOverlay._RIMM2147_IconOverlay_Curved65x65.png
Built for BlackBerry Icon Overlay__MACOSX\RIMM2147_IconOverlay._RIMM2147_IconOverlay_Straight480x480.png
Built for BlackBerry Icon Overlay__MACOSX\RIMM2147_IconOverlay._RIMM2147_IconOverlay_Straight65x65.png
Built for BlackBerry Icon Overlay\RIMM2147_IconOverlay
Built for BlackBerry Icon Overlay\RIMM2147_IconOverlay.DS_Store
Built for BlackBerry Icon Overlay\RIMM2147_IconOverlay\RIMM2147_IconOverlay_1920x1186.png
Built for BlackBerry Icon Overlay\RIMM2147_IconOverlay\RIMM2147_IconOverlay_Curved480x480.png
Built for BlackBerry Icon Overlay\RIMM2147_IconOverlay\RIMM2147_IconOverlay_Curved65x65.png
Built for BlackBerry Icon Overlay\RIMM2147_IconOverlay\RIMM2147_IconOverlay_Straight480x480.png
Built for BlackBerry Icon Overlay\RIMM2147_IconOverlay\RIMM2147_IconOverlay_Straight65x65.png
Built for BlackBerry Logo
Built for BlackBerry Logo\onBLK
Built for BlackBerry Logo\onBLK\Ai
Built for BlackBerry Logo\onBLK\Ai\BuiltForBlackBerry_Badge_onBLK.ai
Built for BlackBerry Logo\onBLK\Ai\BuiltForBlackBerry_onBLK.ai
Built for BlackBerry Logo\onBLK\EPS
Built for BlackBerry Logo\onBLK\EPS\BuiltForBlackBerry_Badge_onBLK.eps
Built for BlackBerry Logo\onBLK\EPS\BuiltForBlackBerry_onBLK.eps
Built for BlackBerry Logo\onBLK\JPG
Built for BlackBerry Logo\onBLK\JPG\BuiltForBlackBerry_Badge_onBLK.jpg
Built for BlackBerry Logo\onBLK\JPG\BuiltForBlackBerry_onBLK.jpg
Built for BlackBerry Logo\onBLK\PNG
Built for BlackBerry Logo\onBLK\PNG\BuiltForBlackBerry_Badge_onBLK.png
Built for BlackBerry Logo\onBLK\PNG\BuiltForBlackBerry_onBLK.png
Built for BlackBerry Logo\onWHT
Built for BlackBerry Logo\onWHT\Ai
Built for BlackBerry Logo\onWHT\Ai\BuiltForBlackBerry_Badge_onWHT.ai
Built for BlackBerry Logo\onWHT\Ai\BuiltForBlackBerry_onWHT.ai
Built for BlackBerry Logo\onWHT\EPS
Built for BlackBerry Logo\onWHT\EPS\BuiltForBlackBerry_Badge_onWHT.eps
Built for BlackBerry Logo\onWHT\EPS\BuiltForBlackBerry_onWHT.eps
Built for BlackBerry Logo\onWHT\JPG
Built for BlackBerry Logo\onWHT\JPG\BuiltForBlackBerry_Badge_onWHT.jpg
Built for BlackBerry Logo\onWHT\JPG\BuiltForBlackBerry_onWHT.jpg
Built for BlackBerry Logo\onWHT\PNG
Built for BlackBerry Logo\onWHT\PNG\BuiltForBlackBerry_Badge_onWHT.png
Built for BlackBerry Logo\onWHT\PNG\BuiltForBlackBerry_onWHT.png

If you want a directory listing that doesn't get the formatting thrown off by Github, https://dl.dropboxusercontent.com/u/9610464/Temp/files.txt

@kwallis
Copy link
Member

kwallis commented Jun 13, 2013

@bryanhiggins any thoughts?

@SCrid2000
Copy link
Author

Update: problem seems to occur with any zip that has sub directories. Just made a zip with a two text files, one at the root and the other in a folder. Folder was extracted empty, file in root was extracted.

@peardox
Copy link
Contributor

peardox commented Jun 15, 2013

This LOOKS like an issue whereby the directory structure is not created properly

The directory needs to exist before a file can be extracted to it

Basically at the start of each extract you would need to check that the directory is present and if missing create it (mkdir)

This can get complicated but dirname simplifies the issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants