mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
enhance: use /api instead of /api-invoker
This commit is contained in:
@@ -57,10 +57,12 @@
|
||||
[dir & {:keys [path-only?]}]
|
||||
(p/let [result (protocol/readdir (get-fs dir) dir)
|
||||
result (bean/->clj result)]
|
||||
(if (and path-only? (map? (first result)))
|
||||
(->> (map :uri result)
|
||||
(map gp-util/path-normalize))
|
||||
(map #(update % :uri gp-util/path-normalize) result))))
|
||||
(let [result (if (and path-only? (map? (first result)))
|
||||
(map :uri result)
|
||||
result)]
|
||||
(if (and (map? (first result)) (:uri (first result)))
|
||||
(map #(update % :uri gp-util/path-normalize) result)
|
||||
(map gp-util/path-normalize result)))))
|
||||
|
||||
(defn unlink!
|
||||
"Should move the path to logseq/recycle instead of deleting it."
|
||||
|
||||
Reference in New Issue
Block a user