[Python-Dev] os.path.normcase rationale? (original) (raw)
James Y Knight foom at fuhm.net
Sun Oct 3 15:32:44 CEST 2010
- Previous message: [Python-Dev] os.path.normcase rationale?
- Next message: [Python-Dev] framework build for 2.7 using old sqlite?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Oct 3, 2010, at 9:18 AM, Dan Villiom Podlaski Christiansen wrote:
A simpler alternative would probably be the FGETPATH fcntl. An example:
That requires that you have permission to open the file (and to actually do so which might have other effects), while the File Manager's FSRef method does not.
If Python adds a cross-platform function to do this canonicalization, users don't have to worry about how easy it is to invoke in pure-python...
James
- Previous message: [Python-Dev] os.path.normcase rationale?
- Next message: [Python-Dev] framework build for 2.7 using old sqlite?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]