Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Zipping files

16 views
Skip to first unread message

Mark Lawrence

unread,
Nov 13, 2012, 7:38:45 PM11/13/12
to pytho...@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.

0 new messages