Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Zipping files
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mark Lawrence  
View profile  
 More options Nov 13 2012, 7:37 pm
Newsgroups: comp.lang.python
From: Mark Lawrence <breamore...@yahoo.co.uk>
Date: Wed, 14 Nov 2012 00:38:45 +0000
Local: Tues, Nov 13 2012 7:38 pm
Subject: 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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »