mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-25 18:47:51 +02:00
Add extensions for handling UniFile name/file extensions
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
package tachiyomi.core.storage
|
||||
|
||||
import com.hippo.unifile.UniFile
|
||||
|
||||
val UniFile.extension: String?
|
||||
get() = name?.substringAfterLast('.')
|
||||
|
||||
val UniFile.nameWithoutExtension: String?
|
||||
get() = name?.substringBeforeLast('.')
|
Reference in New Issue
Block a user