mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 23:54:55 +00:00
refactor: path/absolute?
This commit is contained in:
@@ -102,7 +102,8 @@
|
||||
rel-path (when (string/starts-with? path repo-dir)
|
||||
(path/trim-dir-prefix repo-dir path))
|
||||
original-name (db/get-file-page (or path rel-path))
|
||||
in-db? (boolean (db/get-file (or path rel-path)))
|
||||
in-db? (when-not (path/absolute? path)
|
||||
(boolean (db/get-file (or path rel-path))))
|
||||
file-fpath (if in-db?
|
||||
(path/path-join repo-dir path)
|
||||
path)
|
||||
|
||||
Reference in New Issue
Block a user