mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-06-01 23:45:28 +00:00
22 lines
403 B
Kotlin
22 lines
403 B
Kotlin
package dev.inmo.micro_utils.common
|
|
|
|
import dev.inmo.micro_utils.coroutines.doInIO
|
|
import dev.inmo.micro_utils.coroutines.doOutsideOfCoroutine
|
|
import java.io.File
|
|
|
|
/**
|
|
* @suppress
|
|
*/
|
|
actual typealias MPPFile = File
|
|
|
|
/**
|
|
* @suppress
|
|
*/
|
|
actual val MPPFile.filename: FileName
|
|
get() = FileName(name)
|
|
/**
|
|
* @suppress
|
|
*/
|
|
actual val MPPFile.filesize: Long
|
|
get() = if (exists()) length() else -1L
|