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


Groups > comp.lang.python > #33277 > unrolled thread

Re: Zipping files

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2012-11-14 00:38 +0000
Last post2012-11-14 00:38 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Zipping files Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-11-14 00:38 +0000

#33277 — Re: Zipping files

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2012-11-14 00:38 +0000
SubjectRe: Zipping files
Message-ID<mailman.3654.1352853458.27098.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web