From 9169206ed85c71aa04428c4df5c811a092144cea Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Sun, 7 Jan 2024 16:01:53 +0000 Subject: [PATCH] Use Kotlin Path instead of Java Path --- src/main/kotlin/filesystem/FSCreator.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/filesystem/FSCreator.kt b/src/main/kotlin/filesystem/FSCreator.kt index cda4e58..8f8e484 100644 --- a/src/main/kotlin/filesystem/FSCreator.kt +++ b/src/main/kotlin/filesystem/FSCreator.kt @@ -1,7 +1,7 @@ package filesystem import java.nio.file.FileAlreadyExistsException -import java.nio.file.Path +import kotlin.io.path.Path import kotlin.io.path.createDirectory import kotlin.io.path.createFile import kotlin.io.path.writeText @@ -30,7 +30,7 @@ class FSCreator { val queue = ArrayDeque( listOf( - entryToCreate to Path.of(destination), + entryToCreate to Path(destination), ), )