1995-03-28 09:35:14 -04:00
|
|
|
\chapter{Macintosh Specific Services}
|
1994-01-01 21:22:07 -04:00
|
|
|
|
1995-02-28 13:14:32 -04:00
|
|
|
The modules in this chapter are available on the Apple Macintosh only.
|
1994-01-01 21:22:07 -04:00
|
|
|
|
1995-03-17 12:07:09 -04:00
|
|
|
\section{Built-in Module \sectcode{mac}}
|
1994-01-01 21:22:07 -04:00
|
|
|
|
|
|
|
\bimodindex{mac}
|
|
|
|
This module provides a subset of the operating system dependent
|
|
|
|
functionality provided by the optional built-in module \code{posix}.
|
|
|
|
It is best accessed through the more portable standard module
|
|
|
|
\code{os}.
|
|
|
|
|
|
|
|
The following functions are available in this module:
|
|
|
|
\code{chdir},
|
|
|
|
\code{getcwd},
|
|
|
|
\code{listdir},
|
|
|
|
\code{mkdir},
|
|
|
|
\code{rename},
|
|
|
|
\code{rmdir},
|
|
|
|
\code{stat},
|
|
|
|
\code{sync},
|
|
|
|
\code{unlink},
|
|
|
|
as well as the exception \code{error}.
|
|
|
|
|
1995-03-17 12:07:09 -04:00
|
|
|
\section{Standard Module \sectcode{macpath}}
|
1994-01-01 21:22:07 -04:00
|
|
|
|
|
|
|
\stmodindex{macpath}
|
|
|
|
This module provides a subset of the pathname manipulation functions
|
|
|
|
available from the optional standard module \code{posixpath}. It is
|
|
|
|
best accessed through the more portable standard module \code{os}, as
|
|
|
|
\code{os.path}.
|
|
|
|
|
|
|
|
The following functions are available in this module:
|
|
|
|
\code{normcase},
|
|
|
|
\code{isabs},
|
|
|
|
\code{join},
|
|
|
|
\code{split},
|
|
|
|
\code{isdir},
|
|
|
|
\code{isfile},
|
|
|
|
\code{exists}.
|