dart:io
FileStat class
A FileStat object represents the result of calling the POSIX stat() function on a file system object. It is an immutable object, representing the snapshotted values returned by the stat() call.
Properties
- accessed → DateTime
final
- The time of the last access to the data of the file system object. [...]
- changed → DateTime
final
- The time of the last change to the data or metadata of the file system object. [...]
- mode → int
final
- The mode of the file system object. [...]
- modified → DateTime
final
- The time of the last change to the data of the file system object.
- size → int
final
- The size of the file system object.
- type → FileSystemEntityType
final
- The type of the underlying file system object. [...]
- hashCode → int
read-only, inherited
- The hash code for this object. [...]
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
Methods
- modeString() → String
- Returns the mode value as a human-readable string. [...]
- toString() → String
override
- Returns a string representation of this object.
- noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed. [...]
Operators
- operator ==(dynamic 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
. [...]