Next Previous Up Top Contents Index

8 The File-System Module

8.5 Finding out file system information

A number of functions return environment information regarding the directory structure of the file system. Each function takes no arguments, and returns a pathname or list of pathnames. The return values can be use in conjunction with other functions to perform file-based operations relative to the directories involved.

home-directory

Function

home-directory () => home-directory

Returns the <pathname> of the current value of the home directory. You can use the return value of home-directory in conjunction with concatenate to specify the pathname of any entity in the home directory.
root-directories

Function

root-directories () => roots 

Returns a sequence containing the pathnames of the root directories of all the file systems connected to the local machine.
temp-directory

Function

temp-directory () => temp-directory

Returns the <pathname> of the temporary directory in use on the local machine. If no temporary directory is defined, this function returns false. You can use the return value of temp-directory in conjunction with concatenate to specify pathnames of entities in the temporary directory.
working-directory

Function

working-directory () => working-directory

Returns the <pathname> of the current working directory in the current process on the local machine. You can use the return value of working-directory in conjunction with concatenate to specify pathnames of entities in the working directory.

System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index