14 lines
384 B
Kotlin
14 lines
384 B
Kotlin
|
package sushi.hardcore.droidfs.filesystems
|
||
|
|
||
|
class Stat(val type: Int, var size: Long, val mTime: Long) {
|
||
|
companion object {
|
||
|
const val S_IFDIR = 0x4000
|
||
|
const val S_IFREG = 0x8000
|
||
|
const val S_IFLNK = 0xA000
|
||
|
const val PARENT_FOLDER_TYPE = -1
|
||
|
|
||
|
fun parentFolderStat(): Stat {
|
||
|
return Stat(PARENT_FOLDER_TYPE, -1, -1)
|
||
|
}
|
||
|
}
|
||
|
}
|