blob: 1e60983b1c609bd7863d153d184f214a03332b41 [file] [log] [blame]
Jack Jansenda53c521995-10-10 14:43:20 +00001
2\section{Standard module \sectcode{macostools}}
3\stmodindex{macostools}
4
5This module contains some convenience routines for file-manipulation
6on the Macintosh.
7
8The \code{macostools} module defines the following functions:
9
10\renewcommand{\indexsubitem}{(in module macostools)}
11
12\begin{funcdesc}{copy}{src\, dst\optional{\, createpath}}
13Copy file \var{src} to \var{dst}. The files can be specified as
14pathnames or \code{FSSpec} objects. If \var{createpath} is non-zero
15\var{dst} must be a pathname and the folders leading to the
16destination are created if necessary.
17The method copies data and resource fork and some finder information
18(creator, type and flags). Custom icons, comments and icon position
19are not copied.
20\end{funcdesc}
21
22\begin{funcdesc}{copytree}{src\, dst}
23Recursively copy a file tree from \var{src} to \var{dst}, creating
24folders as needed. \var{Src} and \var{dst} should be specified as
25pathnames.
26\end{funcdesc}
27
28\begin{funcdesc}{mkalias}{src\, dst}
29Create a finder alias \var{dst} pointing to \var{src}. Both may be
30specified as pathnames or \var{FSSpec} objects.
31\end{funcdesc}
32
33\begin{datadesc}{BUFSIZ}
34The buffer size for \code{copy}, default 1 megabyte.
35\end{datadesc}
36
37Note that the process of creating finder aliases is not specified in
38the Apple documentation. Hence, aliases created with \code{mkalias}
39could conceivably have incompatible behaviour in some cases.