[Python-checkins] CVS: python/dist/src/Doc/lib libposixpath.tex,1.18,1.19

Guido van Rossum gvanrossum@users.sourceforge.net
Mon, 17 Sep 2001 08:16:11 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv22193/Doc/lib

Modified Files:
	libposixpath.tex 
Log Message:
SF patch #461781 by Chris Lawrence: os.path.realpath - Resolve symlinks:

   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'



Index: libposixpath.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libposixpath.tex,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** libposixpath.tex	2001/05/25 16:21:00	1.18
--- libposixpath.tex	2001/09/17 15:16:09	1.19
***************
*** 138,141 ****
--- 138,148 ----
  \end{funcdesc}
  
+ \begin{funcdesc}{realpath}{path}
+ Return the canonical path of the specified filename, eliminating any
+ symbolic links encountered in the path.
+ Availability:  \UNIX{}.
+ \versionadded{2.2}
+ \end{funcdesc}
+ 
  \begin{funcdesc}{samefile}{path1, path2}
  Return true if both pathname arguments refer to the same file or