Next: Users, Previous: Directories, Up: Osicat
Checks whether the file named by the pathname designator
pathspecexists, if this is the case andfile-kindis specified it also checks the file kind. If the tests succeed, return two values: truename and file kind ofpathspec,nilotherwise. Follows symbolic links.
Checks whether the file named by the pathname designator
pathspecexists and is a regular file. Returns its truename if this is the case,nilotherwise. Follows symbolic links.
Returns a keyword indicating the kind of file designated by
pathspec, ornilif the file does not exist. Does not follow symbolic links by default.Possible file-kinds in addition to
nilare::regular-file,:symbolic-link,:directory,:pipe,:socket,:character-device, and:block-device. Iffollow-symlinksis non-NIL andpathspecdesignates a broken symlink returns:brokenas second value.Signals an error if
pathspecis wild.
file-permissionsreturns a list of keywords identifying the permissions ofpathspec.
setffile-permissionssets the permissions ofpathspecas identified by the symbols in list.If
pathspecdesignates a symbolic link, that link is implicitly resolved.Permission symbols consist of
:user-read,:user-write,:user-exec,:group-read,:group-write,:group-exec,:other-read,:other-write,:other-exec,:set-user-id,:set-group-id, and:sticky.Both signal an error if
pathspecis wild, or doesn't designate an existing file.
Creates a temporary file setup for input and output, and returns a stream connected to that file.
pathspecserves as template for the file to be created: a certain number of random characters will be concatenated to the file component ofpathspec. Ifpathspechas no directory component, the file will be created inside*temporary-directory*. The file itself is unlinked once it has been opened.
element-typespecifies the unit of transaction of the stream. Consider usingwith-temporary-fileinstead of this function.On failure, a
file-errormay be signalled.
Within the lexical scope of the body,
streamis connected to a temporary file as created byopen-temporary-file. The file is closed automatically oncebodyexits.
Creates
linkthat points totarget. Defaults to a symbolic link, but giving a non-NIL value to the keyword argument:hardcreates a hard link. Returns the pathname of the link.Relative targets are resolved against the link. Relative links are resolved against
*default-pathname-defaults*.Signals an error if either target or link is wild, target does not exist, or link exists already.