refactor(fs): simplify path/absolute?

This commit is contained in:
Andelf
2023-03-27 19:31:35 +08:00
parent c1e8d6ed8e
commit 62b4f0a253
2 changed files with 9 additions and 7 deletions

View File

@@ -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))]