next up previous contents
Next: Version Information Up: Changes to System Previous: Missing and Non-Numerical

Working Directories and Directory Function

The function get-working-directory  returns a string naming the current working directory. The function set-working-directory  sets the working directory to the directory specified by its string argument. If the change of directory succeeds, t is returned. Otherwise, nil is returned.

On the Macintosh these functions will fail if the length of the directory name is greater than 255.

A minimal version of the directory  function is now available. The wildcard character for all versions is * -- even for the macintosh. By default, directory  only lists regular files. If a non- nil value is given for the :all  keyword argument, then all files and directories are included. Thus

(directory "*")
(directory "*" :all t)
should list all regular files and all files, respectively, in the current working directory.



Luke Tierney
Wed Feb 26 05:25:18 CST 1997