mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-04 07:39:39 +00:00
fix build
This commit is contained in:
@@ -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 }
|
|
@@ -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 }
|
|
@@ -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 }
|
|
@@ -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 }
|
|
@@ -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 }
|
|
Reference in New Issue
Block a user