This section describes interfaces allowing you to identify and access various special locations in the file system.
On Microsoft Windows systems,
cl:user-homedir-pathname uses the environment to construct its result. It uses the values of the environment variables HOMEDRIVE and HOMEPATH, if both are defined. If at least one of environment variables HOMEDRIVE and HOMEPATH is not defined, then a pathname
" is returned. These environment variables should be correctly set before LispWorks starts. However it is possible to change the values in Lisp using
On Microsoft Windows, Mac OS X and Android there are various special folders used for application data and user data. Here are some examples of the folder for application data which is shared between all users.
The locations and folder names can differ between versions of the operating system, therefore it is useful to have a system-independent way to get the path at run time. The function
get-folder-path can be used to retrieve the path to special folders. Directory pathnames corresponding to each of the examples above can be obtained by calling:
for more details.
On Microsoft Windows there is a profile folder for each user. You can find the profile path for the current user with the function
The function set-temp-directory allows you to set the "temp directory", that is the default directory used for temp files.
LispWorks User Guide and Reference Manual - 20 Sep 2017