file-exists-p bug fixed

This commit is contained in:
lxsameer 2010-12-25 20:00:46 +03:30
parent 79ae68a34e
commit 9a2f15bf7c
1 changed files with 3 additions and 3 deletions

View File

@ -26,10 +26,10 @@
(defun new-project () "New project basic function"
(setq project-name (read-string "Project Name: "))
;; 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
(setq project-path (read-directory-name "Project Path: "))
(if (not (file-exists-p (project-path)))
(setq project-path (read-directory-name "Project Path: " nil nil nil project-name))
(if (not (file-exists-p project-path))
(progn
(mkdir project-path)
(log "Project directory created")