Zipping pset5 fails. How to deal with this error? I can zip manually but don't know exactly which files to include.

jharvard@appliance (~/Dropbox/pset5/jpg): zip -r pset5.zip pset5/ -i "*.c" "*.h"  "*/Makefile" "*/questions.txt"
zip warning: name not matched: pset5/
zip warning: zip file empty

did the same in pset5 directory too!

jharvard@appliance (~): cd "/home/jharvard/Dropbox/pset5"jharvard@appliance (~/Dropbox/pset5): zip -r pset5.zip pset5/ -i "*.c" "*.h" "*/Makefile" "*/questions.txt"
zip warning: name not matched: pset5/
zip warning: zip file empty

1 Answer 1


As per pset5 specs:

When ready to submit, open up a Terminal window and navigate your way to ~/Dropbox [...]

As you can see in your terminal output:

jharvard@appliance (~/Dropbox/pset5/jpg): zip -r pset5.zip pset5/ [...]

You're "standing" inside /pset5/jpg subfolder. There's no directory named pset5 inside your /jpg dir.

If you navigate "out" to the folder containing your pset5 folder, it should work.


When you navigate to

jharvard@appliance (~/Dropbox/pset5)

You're inside the pset5 folder. If you try ls command in that prompt, you'll see all your pset5 related stuff.

You have to navigate outside your pset5 folder, as in:

jharvard@appliance (~/Dropbox)

So that if you ls that prompt, you should get something like:

 pset1  ...  pset5  ...

So, inside that directory, you are sure that there is a pset5 in there.

Only then will the zip pset5 command work.

P.S.: Of course, if you zip your entire dir with any compressor (as long as you compress it into a *.zip format) it will be equivalent, and should be graded correctly.

  • oh i tried both ways already, let me edit the question then
    – maq
    Dec 18, 2014 at 19:31
  • i have zipped entire pset5 folder with xarchive and am uploading it. will it be graded correctly?
    – maq
    Dec 18, 2014 at 19:34
  • 1
    Thanks for pointing out - such a silly mistake it was! By the way, using xarchiver and uploading that zip file gets graded zero. Notice -- -i ".c" ".h" "*/Makefile" "*/questions.txt"-- this zips only the named files and those with .c or .h extensions, not the images or raw file, hence getting the zero even though check50 passed.
    – maq
    Dec 19, 2014 at 11:09
  • I don't know if this was your case, but if you upload your pset once, gets graded 0, re-upload, the 0 remains. It's not resetted when a new upload is detected. So, just perhaps, the '0' was from a previous failed upload. Or perhaps, you're right and only code files must be submitted ;) Good luck!
    – abelinux
    Dec 19, 2014 at 13:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .