file-exists-p bug fixed
This commit is contained in:
parent
79ae68a34e
commit
9a2f15bf7c
|
@ -26,10 +26,10 @@
|
||||||
(defun new-project () "New project basic function"
|
(defun new-project () "New project basic function"
|
||||||
(setq project-name (read-string "Project Name: "))
|
(setq project-name (read-string "Project Name: "))
|
||||||
;; Shit IDE use unix-project-name for dealing with project OS activity stuffs
|
;; Shit IDE use unix-project-name for dealing with project OS activity stuffs
|
||||||
setq unix-project-name (replace-regexp-in-string "\ " "_" project-name)
|
(setq unix-project-name (replace-regexp-in-string "\ " "_" project-name))
|
||||||
;; if specified directory does not exists, shit will make it
|
;; if specified directory does not exists, shit will make it
|
||||||
(setq project-path (read-directory-name "Project Path: "))
|
(setq project-path (read-directory-name "Project Path: " nil nil nil project-name))
|
||||||
(if (not (file-exists-p (project-path)))
|
(if (not (file-exists-p project-path))
|
||||||
(progn
|
(progn
|
||||||
(mkdir project-path)
|
(mkdir project-path)
|
||||||
(log "Project directory created")
|
(log "Project directory created")
|
||||||
|
|
Loading…
Reference in New Issue