[Patches] [ python-Patches-461781 ] os.path.realpath - Resolve symlinks
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 17 Sep 2001 08:16:35 -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: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Chris Lawrence (lordsutch)
Assigned to: Guido van Rossum (gvanrossum)
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'
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-09-17 08:16
Message:
Logged In: YES
user_id=6380
Thanks! Checked into CVS now.
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2001-09-15 08:42
Message:
Logged In: YES
user_id=6380
Cool. I'll test and apply this later.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=461781&group_id=5470