Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33277
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: Zipping files |
| Date | 2012-11-14 00:38 +0000 |
| References | <CAHRZm1s9iTefo_kZWcDRZtaNxa9F8g9+SF5w25Wm9XZx0x4uoQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3654.1352853458.27098.python-list@python.org> (permalink) |
On 13/11/2012 23:52, Smaran Harihar wrote:
> Hi Guys,
>
> I am trying to create a script which will zip a bunch of files that I have
> obtained using the 'glob'
>
> So I have a bunch of files,
>
> glob.glob("shp/file1*)
>
> And I want to zip all the files which are returned by the above command.
> How can I do that? Is there a zip library in python?
>
http://docs.python.org/2/library/zipfile.html
Any reason that you couldn't have found this out for yourself, given
that there are several search engines available?
--
Cheers.
Mark Lawrence.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Zipping files Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-11-14 00:38 +0000
csiph-web