Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Zipping files (http://www.velocityreviews.com/forums/t954495-re-zipping-files.html)

Mark Lawrence 11-14-2012 12:38 AM

Re: Zipping files
 
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.



All times are GMT. The time now is 12:28 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57