(fix): resolve symlinks during cache build (#524)

Fixes #518.
This commit is contained in:
Jethro Kuan 2020-04-26 17:42:57 +08:00 committed by GitHub
parent 8bb2465e61
commit 265a3054be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -341,13 +341,12 @@ including the file itself. If the file does not have any connections, nil is re
(org-roam-db--update-cache-links)
(org-roam-buffer--update-maybe :redisplay t))))))
;;;;; org-roam-db-build-cache
(defun org-roam-db-build-cache ()
"Build the cache for `org-roam-directory'."
(interactive)
(org-roam-db--close) ;; Force a reconnect
(org-roam-db) ;; To initialize the database, no-op if already initialized
(let* ((org-roam-files (org-roam--list-files org-roam-directory))
(let* ((org-roam-files (org-roam--list-all-files))
(current-files (org-roam-db--get-current-files))
(time (current-time))
all-files all-links all-titles all-refs)