[Patches] [ python-Patches-461781 ] os.path.realpath - Resolve symlinks

noreply@sourceforge.net noreply@sourceforge.net
Sat, 15 Sep 2001 01:58:43 -0700


Patches item #461781, was opened at 2001-09-15 01:58
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=461781&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Chris Lawrence (lordsutch)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.path.realpath - Resolve symlinks

Initial Comment:
Once upon a time, I put together a little function 
that tries to find the canonical filename for a given 
pathname on POSIX.  I've finally gotten around to 
turning it into a proper patch with documentation.  
On non-POSIX, I made it an alias for 'abspath', as 
that's the behavior on POSIX when no symlinks are 
encountered in the path.

Example:
>>> os.path.realpath('/usr/bin/X11/X')
'/usr/X11R6/bin/X'




----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=461781&group_id=5470