Message92348
I am proposing this feature for an issue we have in Distutils: being
able to set the uid/gid of files added in a tar archive using tarfile.
Here's what I am proposing:
- adding two methods to TarInfo: set_uid and set_gid, that are able to
take a user and group name *or* a uid and gid number
- adding in TarFile a new filter option to add() called include. If
given, it's a callable that receives the tarinfo object right before
it's added, so its uid/gid can be tweaked. This callable must return the
object. If it returns None, the object is not added to the tar file. |
|
Date |
User |
Action |
Args |
2009-09-07 07:47:31 | tarek | set | recipients:
+ tarek, lars.gustaebel |
2009-09-07 07:47:30 | tarek | set | messageid: <1252309650.71.0.647505417979.issue6856@psf.upfronthosting.co.za> |
2009-09-07 07:47:29 | tarek | link | issue6856 messages |
2009-09-07 07:47:28 | tarek | create | |
|