move all string/join used to construct paths to one place

This commit is contained in:
rcmerci
2023-03-01 22:00:25 +08:00
committed by Gabriel Horner
parent 974e91c995
commit de2c1f7445
8 changed files with 20 additions and 13 deletions

View File

@@ -322,7 +322,7 @@
(if (and (< 2 (count parts))
(= 36 (count (parts 0)))
(= 36 (count (parts 1))))
(string/join "/" (drop 2 parts))
(util/string-join-path (drop 2 parts))
path)))
(defprotocol IRelativePath
@@ -531,7 +531,7 @@
{:post [(s/valid? ::diff %)]}
{:TXId (inc index)
:TXType "update_files"
:TXContent [[(string/join "/" [user-uuid graph-uuid relative-path]) nil checksum]]})
:TXContent [[(util/string-join-path [user-uuid graph-uuid relative-path]) nil checksum]]})
(defn filepath+checksum-coll->partitioned-filetxns
"transducer.