stat method - FileSystemEntity class - dart:io library (original) (raw)
Calls the operating system's stat()
function on path.
Identical to FileStat.stat(this.path)
.
Returns a Future<FileStat>
object containing the data returned bystat()
.
If path is a symbolic link then it is resolved and results for the resulting file are returned.
If the call fails, completes the future with a FileStat object with .type
set to FileSystemEntityType.notFound and the other fields invalid.
Implementation
Future<FileStat> stat() => FileStat.stat(path);