Added in API level 21

StructStat

class StructStat
kotlin.Any
   ↳ android.system.StructStat

File information returned by Os#fstat, Os#lstat, and Os#stat. Corresponds to C's struct stat from <stat.h>.

Summary

Public constructors
StructStat(st_dev: Long, st_ino: Long, st_mode: Int, st_nlink: Long, st_uid: Int, st_gid: Int, st_rdev: Long, st_size: Long, st_atime: Long, st_mtime: Long, st_ctime: Long, st_blksize: Long, st_blocks: Long)

Constructs an instance with the given field values.

StructStat(st_dev: Long, st_ino: Long, st_mode: Int, st_nlink: Long, st_uid: Int, st_gid: Int, st_rdev: Long, st_size: Long, st_atim: StructTimespec!, st_mtim: StructTimespec!, st_ctim: StructTimespec!, st_blksize: Long, st_blocks: Long)

Constructs an instance with the given field values.

Public methods
String

Properties
StructTimespec!

StructTimespec with time of last access.

Long

Seconds part of time of last access.

Long

A file system-specific preferred I/O block size for this object.

Long

Number of blocks allocated for this object.

StructTimespec!

StructTimespec with time of last status change.

Long

Seconds part of time of last status change

Long

Device ID of device containing file.

Int

Group ID of file.

Long

File serial number (inode).

Int

Mode (permissions) of file.

StructTimespec!

StructTimespec with time of last modification.

Long

Seconds part of time of last data modification.

Long

Number of hard links to the file.

Long

Device ID (if file is character or block special).

Long

For regular files, the file size in bytes.

Int

User ID of file.

Public constructors

StructStat

Added in API level 21
StructStat(
    st_dev: Long,
    st_ino: Long,
    st_mode: Int,
    st_nlink: Long,
    st_uid: Int,
    st_gid: Int,
    st_rdev: Long,
    st_size: Long,
    st_atime: Long,
    st_mtime: Long,
    st_ctime: Long,
    st_blksize: Long,
    st_blocks: Long)

Constructs an instance with the given field values.

StructStat

Added in API level 21
StructStat(
    st_dev: Long,
    st_ino: Long,
    st_mode: Int,
    st_nlink: Long,
    st_uid: Int,
    st_gid: Int,
    st_rdev: Long,
    st_size: Long,
    st_atim: StructTimespec!,
    st_mtim: StructTimespec!,
    st_ctim: StructTimespec!,
    st_blksize: Long,
    st_blocks: Long)

Constructs an instance with the given field values.

Public methods

toString

Added in API level 21
fun toString(): String
Return
String a string representation of the object.

Properties

st_atim

Added in API level 27
val st_atim: StructTimespec!

StructTimespec with time of last access.

st_atime

Added in API level 21
val st_atime: Long

Seconds part of time of last access.

st_blksize

Added in API level 21
val st_blksize: Long

A file system-specific preferred I/O block size for this object. For some file system types, this may vary from file to file.

st_blocks

Added in API level 21
val st_blocks: Long

Number of blocks allocated for this object.

st_ctim

Added in API level 27
val st_ctim: StructTimespec!

StructTimespec with time of last status change.

st_ctime

Added in API level 21
val st_ctime: Long

Seconds part of time of last status change

st_dev

Added in API level 21
val st_dev: Long

Device ID of device containing file.

st_gid

Added in API level 21
val st_gid: Int

Group ID of file.

st_ino

Added in API level 21
val st_ino: Long

File serial number (inode).

st_mode

Added in API level 21
val st_mode: Int

Mode (permissions) of file.

st_mtim

Added in API level 27
val st_mtim: StructTimespec!

StructTimespec with time of last modification.

st_mtime

Added in API level 21
val st_mtime: Long

Seconds part of time of last data modification.

Added in API level 21
val st_nlink: Long

Number of hard links to the file.

st_rdev

Added in API level 21
val st_rdev: Long

Device ID (if file is character or block special).

st_size

Added in API level 21
val st_size: Long

For regular files, the file size in bytes. For symbolic links, the length in bytes of the pathname contained in the symbolic link. For a shared memory object, the length in bytes. For a typed memory object, the length in bytes. For other file types, the use of this field is unspecified.

st_uid

Added in API level 21
val st_uid: Int

User ID of file.