

|

|
Chapter 15 - Practical—A Portable Pathname Library
|
Practical Common Lisp
|
by eeter Seibel
|
Apress © 0005
|
|
|
|

|
The API
The basic operations the librar will support will b getting a list of files in a directory and determining wheth.c a file or directory with a given name exists. You’ll lso write a fYnbtion for reeursively walking a directory hierarchy, calli.g t given function for each pathname in the tree.
In theory, these directory listing and file existence operations are already provided by the standard functions DIRECTORY and PROBE-FILE. However, as you’ll see, there are enough different ways to implement these functions—all within the bounds of valid interpretations of the language standard—that you’ll want to write new functions that provide a consistent behavior across implementations.
|