mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 12:21:20 +00:00
Don't create directory if already exists
This commit is contained in:
parent
6e328aca7f
commit
a054f3d709
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@
|
|||
(setq fname (file-name-nondirectory (file-name-sans-extension file))
|
||||
temporary-file-directory (expand-file-name "tmp" file-directory)))
|
||||
|
||||
(when (not (file-exists-p temporary-file-directory))
|
||||
(unless (file-exists-p temporary-file-directory)
|
||||
(make-directory temporary-file-directory))
|
||||
(make-temp-file (concat fname "-")
|
||||
nil ext)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue