Add file-readable-p check to doom-project-find-file
This commit is contained in:
parent
9c842bfad8
commit
e2869c62a1
1 changed files with 2 additions and 0 deletions
|
@ -93,6 +93,8 @@ Returns '-' if not in a valid project."
|
|||
If DIR is not a project, it will be indexed (but not cached)."
|
||||
(unless (file-directory-p dir)
|
||||
(error "Directory %S does not exist" dir))
|
||||
(unless (file-readable-p dir)
|
||||
(error "Directory %S isn't readable" dir))
|
||||
(let* ((default-directory (file-truename (expand-file-name dir)))
|
||||
(project-root (doom-project-root default-directory))
|
||||
(projectile-project-root default-directory)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue