fix(fs): windows unc path support

This commit is contained in:
Andelf
2023-11-23 13:22:26 +08:00
parent aa19b511f6
commit 61a3c19176
4 changed files with 42 additions and 6 deletions

View File

@@ -76,8 +76,9 @@
(str "assets://" (string/replace rpath' (str "@" (:name alias)) (:dir alias)))
(if has-schema? (path/path-join graph-root rpath)
(path/path-join "file://" graph-root rpath))))]
(if has-schema?
(path/path-join graph-root rpath)
(path/prepend-protocol "file:" (path/path-join graph-root rpath)))))]
(convert-platform-protocol ret)))))
(defn normalize-asset-resource-url