diff --git a/tgbotapi.core/src/linuxArm64Main/kotlin/dev/inmo/tgbotapi/bot/ktor/base/FileResolver.linuxArm64.kt b/tgbotapi.core/src/linuxArm64Main/kotlin/dev/inmo/tgbotapi/bot/ktor/base/FileResolver.linuxArm64.kt deleted file mode 100644 index cc3da73f5c..0000000000 --- a/tgbotapi.core/src/linuxArm64Main/kotlin/dev/inmo/tgbotapi/bot/ktor/base/FileResolver.linuxArm64.kt +++ /dev/null @@ -1,11 +0,0 @@ -package dev.inmo.tgbotapi.bot.ktor.base - -import dev.inmo.micro_utils.common.MPPFile -import okio.FileSystem -import okio.Path - -internal actual fun resolveFile(filename: String): MPPFile? = runCatching { - with(Path) { filename.toPath() }.takeIf { - FileSystem.SYSTEM.exists(it) && FileSystem.SYSTEM.metadata(it).isRegularFile - } -}.getOrElse { null } \ No newline at end of file diff --git a/tgbotapi.core/src/linuxMain/kotlin/dev/inmo/tgbotapi/bot/ktor/base/FileResolver.linux.kt b/tgbotapi.core/src/linuxMain/kotlin/dev/inmo/tgbotapi/bot/ktor/base/FileResolver.linux.kt deleted file mode 100644 index ddc3bf8dd5..0000000000 --- a/tgbotapi.core/src/linuxMain/kotlin/dev/inmo/tgbotapi/bot/ktor/base/FileResolver.linux.kt +++ /dev/null @@ -1,10 +0,0 @@ -package dev.inmo.tgbotapi.bot.ktor.base - -import okio.FileSystem -import okio.Path - -internal actual fun resolveFile(filename: String): dev.inmo.micro_utils.common.MPPFile? = runCatching { - with(Path) { filename.toPath() }.takeIf { - FileSystem.SYSTEM.exists(it) && FileSystem.SYSTEM.metadata(it).isRegularFile - } -}.getOrElse { null } \ No newline at end of file diff --git a/tgbotapi.core/src/linuxX64Main/kotlin/bot/ktor/base/FileResolver.linuxX64.kt b/tgbotapi.core/src/linuxX64Main/kotlin/bot/ktor/base/FileResolver.linuxX64.kt deleted file mode 100644 index cc3da73f5c..0000000000 --- a/tgbotapi.core/src/linuxX64Main/kotlin/bot/ktor/base/FileResolver.linuxX64.kt +++ /dev/null @@ -1,11 +0,0 @@ -package dev.inmo.tgbotapi.bot.ktor.base - -import dev.inmo.micro_utils.common.MPPFile -import okio.FileSystem -import okio.Path - -internal actual fun resolveFile(filename: String): MPPFile? = runCatching { - with(Path) { filename.toPath() }.takeIf { - FileSystem.SYSTEM.exists(it) && FileSystem.SYSTEM.metadata(it).isRegularFile - } -}.getOrElse { null } \ No newline at end of file diff --git a/tgbotapi.core/src/mingwMain/kotlin/dev/inmo/tgbotapi/bot/ktor/base/FileResolver.mingw.kt b/tgbotapi.core/src/mingwMain/kotlin/dev/inmo/tgbotapi/bot/ktor/base/FileResolver.mingw.kt deleted file mode 100644 index e4a1de5fd7..0000000000 --- a/tgbotapi.core/src/mingwMain/kotlin/dev/inmo/tgbotapi/bot/ktor/base/FileResolver.mingw.kt +++ /dev/null @@ -1,11 +0,0 @@ -package dev.inmo.tgbotapi.bot.ktor.base - -import okio.FileSystem -import okio.Path -import okio.Path.Companion.toPath - -internal actual fun resolveFile(filename: String): dev.inmo.micro_utils.common.MPPFile? = runCatching { - with(Path) { filename.toPath() }.takeIf { - FileSystem.SYSTEM.exists(it) && FileSystem.SYSTEM.metadata(it).isRegularFile - } -}.getOrElse { null } \ No newline at end of file diff --git a/tgbotapi.core/src/mingwX64Main/kotlin/bot/ktor/base/FileResolver.mingwX64.kt b/tgbotapi.core/src/mingwX64Main/kotlin/bot/ktor/base/FileResolver.mingwX64.kt deleted file mode 100644 index 1d08540d3a..0000000000 --- a/tgbotapi.core/src/mingwX64Main/kotlin/bot/ktor/base/FileResolver.mingwX64.kt +++ /dev/null @@ -1,12 +0,0 @@ -package dev.inmo.tgbotapi.bot.ktor.base - -import dev.inmo.micro_utils.common.MPPFile -import okio.FileSystem -import okio.Path -import okio.Path.Companion.toPath - -internal actual fun resolveFile(filename: String): MPPFile? = runCatching { - with(Path) { filename.toPath() }.takeIf { - FileSystem.SYSTEM.exists(it) && FileSystem.SYSTEM.metadata(it).isRegularFile - } -}.getOrElse { null } \ No newline at end of file