mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-06-05 09:08:48 +02:00
13 lines
301 B
Kotlin
13 lines
301 B
Kotlin
package tachiyomi.core.storage
|
|
|
|
import com.hippo.unifile.UniFile
|
|
|
|
val UniFile.extension: String?
|
|
get() = name?.substringAfterLast('.')
|
|
|
|
val UniFile.nameWithoutExtension: String?
|
|
get() = name?.substringBeforeLast('.')
|
|
|
|
val UniFile.displayablePath: String
|
|
get() = filePath ?: uri.toString()
|