I developed a browser extension for Chrome. When you publish an extension, the Chrome Web Store askes you to "zip" your folder and upload it.
Since I am a Mac user I right-clicked on the folder and "compressed" the folder.
The file uploaded to Google's store with no problem.
Then I took the same extension and tried to publish it to the Edge Partner Store. (Is that the name?). It did not work. Instead, I got an error message that said Files or directories outside directory.
Files or directories outside directory
What did this mean? I had never seen this error before. I couldn't find a solution with a web search, so I went to Reddit and Stack Exchange looking for an answer.
It was while I was writing out a description of the issue that I thought of a potential solution - the zipped file might have been the issue. It occurred to me that when I upload zip files to Dropbox there is sometimes an extra file I did not put there. It is a .ds file I believe.
I found a Windows computer and zipped the file and uploaded it successfully.
After this, I thought there had to be a better way. a quick search, I came across some Zipping options for the Mac. Instead of finding a Windows computer, and what I will do next time, is use Terminal and type in zip Archive.zip
If you are having issues with a Zipped file on a Mac, or if you want to password protect a file, try zipping through the Terminal. (The article I linked to shows how to add a password to the zip file.)
No comments:
Post a Comment