This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: os.path.realpath - Resolve symlinks
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: gvanrossum, lordsutch
Priority: normal Keywords: patch

Created on 2001-09-15 08:58 by lordsutch, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
realpath.diff lordsutch, 2001-09-15 08:58 realpath() support patch
Messages (3)
msg37590 - (view) Author: Chris Lawrence (lordsutch) Date: 2001-09-15 08:58
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'


msg37591 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-09-15 15:42
Logged In: YES 
user_id=6380

Cool. I'll test and apply this later.
msg37592 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-09-17 15:16
Logged In: YES 
user_id=6380

Thanks! Checked into CVS now.
History
Date User Action Args
2022-04-10 16:04:26adminsetgithub: 35177
2001-09-15 08:58:42lordsutchcreate