(fix): check if path is remote before using file-truename (#970)
this prevents cache builds from stalling, on paths that point to remote files
This commit is contained in:
parent
20f876aa6b
commit
c536fd4f2e
1 changed files with 3 additions and 1 deletions
|
@ -584,7 +584,9 @@ it as FILE-PATH."
|
||||||
:point begin))
|
:point begin))
|
||||||
(names (pcase type
|
(names (pcase type
|
||||||
("file"
|
("file"
|
||||||
(list (file-truename (expand-file-name path (file-name-directory file-path)))))
|
(if (file-remote-p path)
|
||||||
|
(list path)
|
||||||
|
(list (file-truename (expand-file-name path (file-name-directory file-path))))))
|
||||||
("id"
|
("id"
|
||||||
(list (car (org-roam-id-find path))))
|
(list (car (org-roam-id-find path))))
|
||||||
((pred (lambda (typ)
|
((pred (lambda (typ)
|
||||||
|
|
Loading…
Reference in a new issue