pathnames {pathname}+ {option value}* [Macro]

Creates an item stream of pathnames. Each pathname may be a file name (string), an integer or an item stream. If an integer, pathname is treated as an index into a list of pathnames specified to the item stream using the pathlist option. Each pathname is merged against an optionally specified directory and file type to produce a fully specified pathname.

pathnames implements the following option value pairs:

directory {string}
Sets the default directory for pathnames. Defaults to the directory of *pathnames-default-name*.
type {string}
Sets the default file type (extension) for pathnames. Defaults to the type of *pathnames-default-name*.
pathlist {list}
List of pathnames to use when pathname is an an integer.
An additional set of basic option valuepairs are available in all item stream macros. Others may be available based on the pattern type specified to the macro.

Example:

? (setf x (pathnames "hi" "ho" "silver.aiff" "away"
                     type "aifc" in rotation for 8))
#<ROTATIONAL-PATHNAME-STREAM @ #x107c66a2>

? (read-items x)
("/sounds/alban/hi.aifc" "/sounds/alban/ho.aifc"
 "/sounds/alban/silver.aiff" "/sounds/alban/away.aifc"
 "/sounds/alban/ho.aifc" "/sounds/alban/silver.aiff"
 "/sounds/alban/away.aifc" "/sounds/alban/hi.aifc")

See Also:

Item Streams, *pathnames-default-name*


Last Modified: 5-Mar-1998