Skip to content

Commit

Permalink
Remove usages of windows separators (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliabeliaeva authored Sep 21, 2021
1 parent bf2e91d commit 8adc56b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private fun loadImagesFromDirectory(
archiveName: String
): Array<FloatArray> {
val images = Array(subDatasetSize) {
ImageConverter.toNormalizedFloatArray(File("$archiveName\\${it + 1}.png"))
ImageConverter.toNormalizedFloatArray(File(archiveName, "${it + 1}.png"))
}

return images
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class Save(
@Throws(IOException::class)
override fun save(filename: String, image: BufferedImage) {
val outputFile: File = if (dirLocation!!.isDirectory) {
File("$dirLocation\\${filename}")
File(dirLocation, filename)
} else {
dirLocation!!
}
Expand Down

0 comments on commit 8adc56b

Please sign in to comment.