FileStat class

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
final
The time of the last access to the data of the file system object. [...]
changedDateTime
final
The time of the last change to the data or metadata of the file system object. [...]
hashCodeint
read-only, inherited
The hash code for this object. [...]
modeint
final
The mode of the file system object. [...]
modifiedDateTime
final
The time of the last change to the data of the file system object.
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
sizeint
final
The size of the file system object.
typeFileSystemEntityType
final
The type of the underlying file system object. [...]

Methods

modeString() → String
The mode value as a human-readable string. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
override
A string representation of this object. [...]

Operators

operator ==(Object other) → bool
inherited
The equality operator. [...]

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. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/FileStat-class.html