mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
Add missing resolve method to stroages.util ns.
This commit is contained in:
8
backend/vendor/storages/util.clj
vendored
8
backend/vendor/storages/util.clj
vendored
@@ -108,6 +108,14 @@
|
||||
[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
|
||||
[path]
|
||||
(let [path (pt/-path path)]
|
||||
|
||||
Reference in New Issue
Block a user