diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-10 14:43:20 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-10 14:43:20 (GMT) |
commit | da53c5277c4fb10fbd7798f85eafa91c56819311 (patch) | |
tree | 03010fcc0215afe9e2874fbc98b0474627ee2706 /Doc/libmacostools.tex | |
parent | 06cf5d0d4c30a98226da3fd18c9227c5e7d09fd7 (diff) | |
download | cpython-da53c5277c4fb10fbd7798f85eafa91c56819311.zip cpython-da53c5277c4fb10fbd7798f85eafa91c56819311.tar.gz cpython-da53c5277c4fb10fbd7798f85eafa91c56819311.tar.bz2 |
Documented MACFS, macostools, EasyDialogs and FrameWork modules.
Diffstat (limited to 'Doc/libmacostools.tex')
-rw-r--r-- | Doc/libmacostools.tex | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Doc/libmacostools.tex b/Doc/libmacostools.tex new file mode 100644 index 0000000..1e60983 --- /dev/null +++ b/Doc/libmacostools.tex @@ -0,0 +1,39 @@ + +\section{Standard module \sectcode{macostools}} +\stmodindex{macostools} + +This module contains some convenience routines for file-manipulation +on the Macintosh. + +The \code{macostools} module defines the following functions: + +\renewcommand{\indexsubitem}{(in module macostools)} + +\begin{funcdesc}{copy}{src\, dst\optional{\, createpath}} +Copy file \var{src} to \var{dst}. The files can be specified as +pathnames or \code{FSSpec} objects. If \var{createpath} is non-zero +\var{dst} must be a pathname and the folders leading to the +destination are created if necessary. +The method copies data and resource fork and some finder information +(creator, type and flags). Custom icons, comments and icon position +are not copied. +\end{funcdesc} + +\begin{funcdesc}{copytree}{src\, dst} +Recursively copy a file tree from \var{src} to \var{dst}, creating +folders as needed. \var{Src} and \var{dst} should be specified as +pathnames. +\end{funcdesc} + +\begin{funcdesc}{mkalias}{src\, dst} +Create a finder alias \var{dst} pointing to \var{src}. Both may be +specified as pathnames or \var{FSSpec} objects. +\end{funcdesc} + +\begin{datadesc}{BUFSIZ} +The buffer size for \code{copy}, default 1 megabyte. +\end{datadesc} + +Note that the process of creating finder aliases is not specified in +the Apple documentation. Hence, aliases created with \code{mkalias} +could conceivably have incompatible behaviour in some cases. |