mirror of
https://github.com/penpot/penpot.git
synced 2026-09-09 13:39:02 +00:00
Add missing resolve method to stroages.util ns.
This commit is contained in:
parent
5165ac6e52
commit
1502d9ed23
8
backend/vendor/storages/util.clj
vendored
8
backend/vendor/storages/util.clj
vendored
@ -108,6 +108,14 @@
|
|||||||
[path]
|
[path]
|
||||||
(first (split-ext path)))
|
(first (split-ext path)))
|
||||||
|
|
||||||
|
(defn resolve
|
||||||
|
"Resolve path on top of an other path."
|
||||||
|
[base path]
|
||||||
|
(let [^Path base (pt/-path base)
|
||||||
|
^Path path (pt/-path path)]
|
||||||
|
(-> (.resolve base path)
|
||||||
|
(.normalize))))
|
||||||
|
|
||||||
(defn list-directory
|
(defn list-directory
|
||||||
[path]
|
[path]
|
||||||
(let [path (pt/-path path)]
|
(let [path (pt/-path path)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user