mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Patch 1339796: add a relpath() function to os.path.
This commit is contained in:
parent
6de691d78c
commit
6f187743ff
7 changed files with 77 additions and 3 deletions
|
@ -189,6 +189,15 @@ operating system).
|
|||
\versionadded{2.2}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{relpath}{path\optional{, start}}
|
||||
Return a relative filepath to \var{path} either from the current
|
||||
directory or from an optional \var{start} point.
|
||||
|
||||
\var{start} defaults to \member{os.curdir}.
|
||||
Availability: Windows, \UNIX.
|
||||
\versionadded{2.6}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{samefile}{path1, path2}
|
||||
Return \code{True} if both pathname arguments refer to the same file or
|
||||
directory (as indicated by device number and i-node number).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue