[ python-Feature Requests-1200804 ] enhancing os.chown functionality
SourceForge.net
noreply at sourceforge.net
Thu May 19 00:49:10 CEST 2005
Feature Requests item #1200804, was opened at 2005-05-12 11:26
Message generated for change (Comment added) made by jepler
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1200804&group_id=5470
Category: Extension Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: gyrof (gyrof)
Assigned to: Nobody/Anonymous (nobody)
Summary: enhancing os.chown functionality
Initial Comment:
Hi,
I don't think it is currently possible (with os.chown
or any other Python library function) to change the
groupId of a file without specifying the userId (like
posix 'chgrp' does), or to change the userId without
specifying the groupId.
I would suggest adding the option of having os.chown
accept None as either the userId or groupId, and having
the function change only the 'non-None' portion of the
file ownership.
Thanks for your consideration.
-g
----------------------------------------------------------------------
Comment By: Jeff Epler (jepler)
Date: 2005-05-18 17:49
Message:
Logged In: YES
user_id=2772
the posix (os) module is intended as a thin wrapper around
operating system services. The chown(2) syscall requires
that owner and group both be specified.
Possibly an enhanced chownonly/chgrp would find a home in
the 'shutil' module.
Possibly translating a parameter of None into -1 (which
means 'no change') would be accepted as a patch.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1200804&group_id=5470
More information about the Python-bugs-list
mailing list