Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #42126

Re: Help with zip in a Python exercise

From Anssi Saari <as@sci.fi>
Newsgroups comp.lang.python
Subject Re: Help with zip in a Python exercise
Date 2013-03-28 15:35 +0200
Message-ID <vg37gkrve8r.fsf@coffee.modeemi.fi> (permalink)
References <6d95376b-1c56-4710-b81b-87177b189c5a@googlegroups.com>

Show all headers | View raw


luggw1@elpasotel.net writes:

> I've been working through a Python tutorial online and one of the exercises uses the zip command.  The only problem is that the command doesn't work.  I've read through the man page for zip and it looks like what I'm attempting should work, but it doesn't.
>
> The command is:
>
> zip -qr /media/backup/backups/test/20130326100218.zip -i /home/luggw1/Documents/ /home/luggw1/Code/

-i simply isn't used to to specify which directories you want to
 zip. You can use it to specify filenames that you want in your zip,
 regardless of where they are. Not exactly an option I've ever had use
 for in over a decade of using zip...

Just leave -i out of the command and you'll probably get what you
intended.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Help with zip in a Python exercise luggw1@elpasotel.net - 2013-03-26 10:06 -0700
  Re: Help with zip in a Python exercise Joel Goldstick <joel.goldstick@gmail.com> - 2013-03-26 13:22 -0400
  Re: Help with zip in a Python exercise Anssi Saari <as@sci.fi> - 2013-03-28 15:35 +0200

csiph-web