Re: Zipping files

Discussion in 'Python' started by Mark Lawrence, Nov 14, 2012.

  1. 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.
    Mark Lawrence, Nov 14, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Doug Tolton

    Zipping and Unzipping files

    Doug Tolton, Nov 21, 2003, in forum: Python
    Replies:
    1
    Views:
    306
    Peter Hansen
    Nov 21, 2003
  2. OriginalBrownster

    Zipping Files to user defined Directory

    OriginalBrownster, Jul 28, 2006, in forum: Python
    Replies:
    4
    Views:
    326
    Danny Milosavljevic
    Sep 2, 2006
  3. OriginalBrownster

    Zipping files/zipfile module

    OriginalBrownster, Aug 2, 2006, in forum: Python
    Replies:
    5
    Views:
    457
    Brian Beck
    Aug 2, 2006
  4. OriginalBrownster
    Replies:
    4
    Views:
    322
    Dennis Lee Bieber
    Aug 21, 2006
  5. dp_pearce

    Zipping files

    dp_pearce, Jul 15, 2008, in forum: Python
    Replies:
    3
    Views:
    304
    Tim Golden
    Jul 15, 2008
Loading...

Share This Page