FileStat class - dart:io library (original) (raw)

The result of calling the POSIX stat() function on a file system object.

This is an immutable object, representing the snapshotted values returned by the stat() call.

Properties

accessedDateTime

The time of the last access to the data of the file system object.

final

changedDateTime

The time of the last change to the data or metadata of the file system object.

final

hashCodeint

The hash code for this object.

no setterinherited

modeint

The mode of the file system object.

final

modifiedDateTime

The time of the last change to the data of the file system object.

final

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

sizeint

The size of the file system object.

final

typeFileSystemEntityType

The type of the underlying file system object.

final

Methods

modeString()→ String

The mode value as a human-readable string.

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

toString()→ String

A string representation of this object.

override

Operators

operator ==(Object other)→ bool

The equality operator.

inherited

Static Methods

stat(String path)→ Future<FileStat>

Asynchronously calls the operating system's stat() function (or equivalent) on path.

statSync(String path)→ FileStat

Calls the operating system's stat() function (or equivalent) on path.