check for existance of org-directory before searching it
This commit is contained in:
parent
6633dbb276
commit
5e715c6424
1 changed files with 2 additions and 1 deletions
|
|
@ -240,7 +240,8 @@ automatically from the query."
|
|||
When RECURSE is non-nil, recurse into subdirectories. When
|
||||
REGEXP is non-nil, only return files that match REGEXP."
|
||||
(let ((files (->> directories
|
||||
(--map (f-files it nil recurse))
|
||||
(--map (if (f-exists-p it)
|
||||
(f-files it nil recurse)))
|
||||
-flatten)))
|
||||
(if regexp
|
||||
(--select (string-match regexp it)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue