mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(fix): org-roam-descendant-of-p
bug on Windows (#2089)
On Windows, `file-truename` and `directory-file-name` downcase driver label: "C:/" => "c:/", while `expand-file-name` keep the case unchanged. If `org-roam-directory` use upper case driver label, `org-roam-descendant-of-p` will alway return `nil`. Fix by only using `file-truename` in the function.
This commit is contained in:
@ -194,7 +194,7 @@ FILE is an Org-roam file if:
|
||||
(member ext org-roam-file-extensions)
|
||||
(not (and org-roam-file-exclude-regexp
|
||||
(string-match-p org-roam-file-exclude-regexp path)))
|
||||
(org-roam-descendant-of-p path (expand-file-name org-roam-directory))))))
|
||||
(file-in-directory-p path (expand-file-name org-roam-directory))))))
|
||||
|
||||
(defun org-roam-list-files ()
|
||||
"Return a list of all Org-roam files under `org-roam-directory'.
|
||||
|
Reference in New Issue
Block a user