StatResult

Stats for a file with name as name.

data class StatResult(name: String, absolutePath: PathComponent, canonicalPath: PathComponent, createdAt: Double?, modifiedAt: Double?, size: Double?, type: FileType)

Constructors

StatResult
Link copied to clipboard
common
fun StatResult(name: String, absolutePath: PathComponent, canonicalPath: PathComponent, createdAt: Double?, modifiedAt: Double?, size: Double?, type: FileType)

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): PathComponent
component3
Link copied to clipboard
common
operator fun component3(): PathComponent
component4
Link copied to clipboard
common
operator fun component4(): Double?
component5
Link copied to clipboard
common
operator fun component5(): Double?
component6
Link copied to clipboard
common
operator fun component6(): Double?
component7
Link copied to clipboard
common
operator fun component7(): FileType
copy
Link copied to clipboard
common
fun copy(name: String, absolutePath: PathComponent, canonicalPath: PathComponent, createdAt: Double?, modifiedAt: Double?, size: Double?, type: FileType): StatResult
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

absolutePath
Link copied to clipboard
common

Absolute path to the file

val absolutePath: PathComponent
canonicalPath
Link copied to clipboard
common

Canonical path to the file. May differ from the input

val canonicalPath: PathComponent
createdAt
Link copied to clipboard
common

Date on which file was created.

Note: On Android, this is always 0 as creation date is unavailable on all supported versions.

val createdAt: Double?
modifiedAt
Link copied to clipboard
common

Date when file was last modified.

val modifiedAt: Double?
name
Link copied to clipboard
common

The file's name including extension if any.

val name: String
size
Link copied to clipboard
common

Size of the file in bytes

val size: Double?
type
Link copied to clipboard
common

Type of the file.

val type: FileType