mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
refactor(fs): simplify path/absolute?
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
[root]
|
||||
(when (string? root)
|
||||
(p/let [exists? (fs/file-exists? root "logseq/graphs-txid.edn")]
|
||||
(prn ::ex exists?)
|
||||
(when exists?
|
||||
(-> (p/let [txid-str (fs/read-file root "logseq/graphs-txid.edn")
|
||||
txid-meta (and txid-str (reader/read-string txid-str))]
|
||||
|
||||
Reference in New Issue
Block a user