SNRK-67: Use system-specific path separator

This commit is contained in:
Kirill Grachev 2023-04-24 16:35:50 +03:00
parent b543735628
commit 7c6157be96

View File

@ -18,9 +18,9 @@ private class LocalFile(private val path: String) : FileReader, FileWriter {
}
private class LocalDirectory(private val root: Path, path: String) : Directory {
private val current = "$root/$path"
private val current = "$root${File.separator}$path"
private fun child(child: String): String = "$current/$child"
private fun child(child: String): String = "$current${File.separator}$child"
override fun close() {}