diff options
Diffstat (limited to 'Doc/lib/libposixpath.tex')
-rw-r--r-- | Doc/lib/libposixpath.tex | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Doc/lib/libposixpath.tex b/Doc/lib/libposixpath.tex index a59b5a7..4bbb5b6 100644 --- a/Doc/lib/libposixpath.tex +++ b/Doc/lib/libposixpath.tex @@ -42,7 +42,7 @@ half of the pair returned by \code{split(\var{path})}. \end{funcdesc} \begin{funcdesc}{exists}{path} -Return true if \var{path} refers to an existing path. +Return \code{True} if \var{path} refers to an existing path. \end{funcdesc} \begin{funcdesc}{expanduser}{path} @@ -88,29 +88,29 @@ Return the size, in bytes, of \var{filename}. Raise \end{funcdesc} \begin{funcdesc}{isabs}{path} -Return true if \var{path} is an absolute pathname (begins with a +Return \code{True} if \var{path} is an absolute pathname (begins with a slash). \end{funcdesc} \begin{funcdesc}{isfile}{path} -Return true if \var{path} is an existing regular file. This follows +Return \code{True} if \var{path} is an existing regular file. This follows symbolic links, so both \function{islink()} and \function{isfile()} can be true for the same path. \end{funcdesc} \begin{funcdesc}{isdir}{path} -Return true if \var{path} is an existing directory. This follows +Return \code{True} if \var{path} is an existing directory. This follows symbolic links, so both \function{islink()} and \function{isdir()} can be true for the same path. \end{funcdesc} \begin{funcdesc}{islink}{path} -Return true if \var{path} refers to a directory entry that is a -symbolic link. Always false if symbolic links are not supported. +Return \code{True} if \var{path} refers to a directory entry that is a +symbolic link. Always \code{False} if symbolic links are not supported. \end{funcdesc} \begin{funcdesc}{ismount}{path} -Return true if pathname \var{path} is a \dfn{mount point}: a point in +Return \code{True} if pathname \var{path} is a \dfn{mount point}: a point in a file system where a different file system has been mounted. The function checks whether \var{path}'s parent, \file{\var{path}/..}, is on a different device than \var{path}, or whether \file{\var{path}/..} @@ -149,7 +149,7 @@ Availability: \UNIX. \end{funcdesc} \begin{funcdesc}{samefile}{path1, path2} -Return true if both pathname arguments refer to the same file or +Return \code{True} if both pathname arguments refer to the same file or directory (as indicated by device number and i-node number). Raise an exception if a \function{os.stat()} call on either pathname fails. @@ -157,14 +157,14 @@ Availability: Macintosh, \UNIX. \end{funcdesc} \begin{funcdesc}{sameopenfile}{fp1, fp2} -Return true if the file objects \var{fp1} and \var{fp2} refer to the +Return \code{True} if the file objects \var{fp1} and \var{fp2} refer to the same file. The two file objects may represent different file descriptors. Availability: Macintosh, \UNIX. \end{funcdesc} \begin{funcdesc}{samestat}{stat1, stat2} -Return true if the stat tuples \var{stat1} and \var{stat2} refer to +Return \code{True} if the stat tuples \var{stat1} and \var{stat2} refer to the same file. These structures may have been returned by \function{fstat()}, \function{lstat()}, or \function{stat()}. This function implements the underlying comparison used by |