mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
parent
8ea67e70cd
commit
d095840121
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class KFiles {
|
||||||
fun joinFileAndMakeDir(vararg ts: String) = joinDir(joinAndMakeDir(ts.slice(0..ts.size - 2)), ts[ts.size - 1])
|
fun joinFileAndMakeDir(vararg ts: String) = joinDir(joinAndMakeDir(ts.slice(0..ts.size - 2)), ts[ts.size - 1])
|
||||||
|
|
||||||
fun fixSlashes(f: File) = f.normalize().path.replace('\\', '/')
|
fun fixSlashes(f: File) = f.normalize().path.replace('\\', '/')
|
||||||
fun fixSlashes(s: String) = fixSlashes(File(s))
|
fun fixSlashes(s: String) = s.replace('\\', '/')
|
||||||
|
|
||||||
fun makeDir(dir: String, s: String? = null) =
|
fun makeDir(dir: String, s: String? = null) =
|
||||||
(if (s != null) File(dir, s) else File(dir)).apply { mkdirs() }
|
(if (s != null) File(dir, s) else File(dir)).apply { mkdirs() }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue