Error 21 - Is A Directory
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the error 21 is a directory zip company Business Learn more about hiring developers or posting ads with us Ask Different
Error 21 Iphone 5
Questions Tags Users Badges Unanswered Ask Question _ Ask Different is a question and answer site for power users of Apple hardware error 21 apple and software. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Error opening a
Error Code 21
zip file: No such file or directory? up vote 17 down vote favorite 5 After 25 years on PCs I am delighting in learning all I can about working with my new Mac and OS X Mavericks. I tried just now to open a zip file but was interrupted when an Archive Utility dialog appeared saying "Unable to expand "filename.zip" into "Downloads". (Error 2 - No such file or directory.) What to do? How fix error 21 can I access the contents of the zip file? osx mavericks zip share|improve this question edited Jun 23 '14 at 6:02 Ian C.♦ 28.7k19109176 asked Jun 23 '14 at 4:01 user83364 86113 add a comment| 2 Answers 2 active oldest votes up vote 25 down vote It's likely that filename.zip is either not actually a .zip file, or is corrupted. Open up Terminal. You can access it by typing "Terminal" into Spotlight. Enter the command(s) in the steps below into your command line prompt (triple click the line, copy it, and paste it into your prompt). Replace filename.zip with the actual name of the zip file. If the name of the file contains spaces, you need to enter it differently using the escape \ character. For example, if the file is named compressed crap.zip, you'd type compressed\ crap.zip in the command line. Step 1: Repair disk permissions. Once done, attempt to open the .zip file again. If you wish, you can do this from the command line. diskutil repairPermissions / Step 2: Use file to confirm it's actually a zip file: file ~/Downloads/filename.zip The output should be: Zip archive data, at least v2.0 to extract If you don't receive this output, post the output as a comment before proceeding. Step 3: After confirming it's actually a zip file, a
Sign in Pricing Blog Support Search GitHub This repository Watch 14 Star 151 Fork 56 kolpanic/ZipKit Code Issues 11 Pull requests 0 Projects 0 Pulse Graphs New issue deflateDirectory: Unable to expand "" into
Unknown Error 21
error 21 - is a directory #8 Open kolpanic opened this Issue May
Grub Error 21
18, 2013 · 2 comments Projects None yet Labels bug Milestone No milestone Assignees kolpanic 1 participant Owner ipad error 21 kolpanic commented May 18, 2013 [Manually imported from Bitbucket] I use: ZKFileArchive *archive = [ZKFileArchive archiveWithArchivePath:stylePath]; [archive setDelegate:self]; //tmpFolder is some folder of my path. //like:/tmp/MyApp/temp.ubaCOF/style/zip/ [archive deflateDirectory:tmpFolder relativeToPath:tmpFolder usingResourceFork:NO]; And then ,i can not http://apple.stackexchange.com/questions/135853/error-opening-a-zip-file-no-such-file-or-directory/135859 unzip the output zip file using mac Archive Utility[,in windows 7, i can unzip it with WinRar too]. it got :Unable to expand "" into error 21 - is a directory i just want to zip a folder, and keep their relative path. But when i use: ZKFileArchive *archive = [ZKFileArchive archiveWithArchivePath:stylePath]; [archive setDelegate:self]; [archive deflateDirectory:tmpFolder relativeToPath:[tmpFolder stringByDeletingLastPathComponent] usingResourceFork:NO]; then ,it' ok ,i can unzip the result file. but the https://github.com/kolpanic/ZipKit/issues/8 relative path is not i want. Any advice will be appreciate. Thanks very very much any for any help... kolpanic was assigned May 18, 2013 Owner kolpanic commented May 18, 2013 [Manually imported from Bitbucket] Oh, i forget ,i use Xcode 4.2.1, mac ox 10.7.4 i don't know where to get the version of zip kit , i have a libzipkit.a in my project linked library I know the libzipkit.a is Created by Karl Moskowski on 08/05/09. Owner kolpanic commented May 18, 2013 [Manually imported from Bitbucket] I think it is wrong to call deflateDirectory:relativeToPath: usingResourceFork: and pass the same parameter to deflateDirectory and relativeToPath. When you do this, the "relative path" parameter is empty string in zip archive. So, archive Utility on Mac will prompt the error message. But winrar is more error resistant, and allow that kind of error to make a correct unzip. If you intended to archive the files inside a folder, but want to unzip all the files right into current directory, you should call deflateFiles:relativeToPath:usingResourceFork: method. And one more thing, Archive Utility on mac will create a folder for discrete files according to zip file name. If you want to test, you may try to use unzip command line to test
to Milestone calibre Edit Invalid Undecided Unassigned Edit You need to log in to https://bugs.launchpad.net/bugs/1408406 change this bug's status. Affecting: calibre Filed here by: claas When: 2015-01-07 Completed: 2015-01-08 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Invalid Undecided Assigned to Nobody Me Comment on this error 21 change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description I tried to do the following on 2 different Macs and the same result: Debug log attached; I could provide both ePub files since I took them for testing from http://gutenberg.org 1. Import is a directory an ePub into iBooks 1.1 on Mac OS X Yosemite latest Version but not Beta. Calibre 2.15 2. Connect a folder or directly take the ePub file which is in the iBooks Library and import it into calibre 3. Then following error appeared: calibre, version 2.15.0 WARNING: Errors while adding: There were problems adding some files, click "Show details" for more information ---------------------------------------------------------------------- Failed to add the file /Users/username/Downloads/4C723FB1615B399DD71076C8078F5BEA.epub to the book: /Users/username/Downloads/4C723FB1615B399DD71076C8078F5BEA With error: Traceback (most recent call last): File "site-packages/calibre/gui2/add.py", line 396, in add_formats File "site-packages/calibre/db/cache.py", line 1335, in add_format File "site-packages/calibre/startup.py", line 183, in local_open IOError: [Errno 21] Is a directory: u'/Users/username/Downloads/4C723FB1615B399DD71076C8078F5BEA.epub' 4. If I tried to import the original ePub, not imported into iBooks, then it worked without a problem. Somehow iBook is converting the ePub file. Have you heard about this and do you know how to solve the problem? The file gets even 3 times the size after importing into iBook then the original