On Tue, Sep 28, 2010 at 4:23 PM, Dan McGee <[email protected]> wrote: > > Xavier, any insight or memory why you did it this way? > > commit c465d9e848b19b495259c7021a583c29fba92b44 > Author: Chantry Xavier <[email protected]> > Date: Thu Apr 17 09:02:11 2008 +0200 > > pactest : Use tarfile module. > >
There was no reason to write it that way, it looks quite stupid, but it's just the first method I found and it worked. I found an old mail when I was looking how to replace the 'tar cf *' call with python tarfile. os.listdir is actually closer to * than os.walk. > I looked a bit at using tarfile, my main problem is the *, I am not > sure this is available in python. > And I don't know how to emulate it either (all files/dirs in the > current directory that dont start with . ?)
