Next: Magic File Names, Previous: Contents of Directories, Up: Files
Most Emacs Lisp file-manipulation functions get errors when used on
files that are directories. For example, you cannot delete a directory
with delete-file. These special functions exist to create and
delete directories.
This command creates a directory named dirname. If parents is non-
nil, as is always the case in an interactive call, that means to create the parent directories first, if they don't already exist.
mkdiris an alias for this.
This command deletes the directory named dirname. The function
delete-filedoes not work for files that are directories; you must usedelete-directoryfor them. If the directory contains any files,delete-directorysignals an error.
delete-directoryonly follows symbolic links at the level of parent directories.