[Python-Dev] Extending os.chown() to accept user/group names (original) (raw)
Petri Lehtinen petri at digip.org
Wed May 25 20:03:39 CEST 2011
- Previous message: [Python-Dev] Extending os.chown() to accept user/group names
- Next message: [Python-Dev] Extending os.chown() to accept user/group names
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Victor Stinner wrote:
Le mercredi 25 mai 2011 à 18:46 +0200, Charles-François Natali a écrit : > While we're at it, adding a "recursive" argument to this shutil.chown > could also be useful.
I don't like the idea of a recursive flag. I would prefer a "map-like" function to "apply" a function on all files of a directory. Something like shutil.applyrecursive(shutil.chown)...
FWIW, the chown program (in GNU coreutils at least) has a -R flag for recursive operation, and I've found it extremely useful on many situations.
Petri
- Previous message: [Python-Dev] Extending os.chown() to accept user/group names
- Next message: [Python-Dev] Extending os.chown() to accept user/group names
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]