From 7c6157be96f2a5a3dd247defce596e58398cf0ad Mon Sep 17 00:00:00 2001 From: Kirill Grachev Date: Mon, 24 Apr 2023 16:35:50 +0300 Subject: [PATCH] SNRK-67: Use system-specific path separator --- .../kotlin/space/kscience/snark/storage/local/LocalDriver.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snark-storage-driver/src/main/kotlin/space/kscience/snark/storage/local/LocalDriver.kt b/snark-storage-driver/src/main/kotlin/space/kscience/snark/storage/local/LocalDriver.kt index 324267c..de6708b 100644 --- a/snark-storage-driver/src/main/kotlin/space/kscience/snark/storage/local/LocalDriver.kt +++ b/snark-storage-driver/src/main/kotlin/space/kscience/snark/storage/local/LocalDriver.kt @@ -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() {}