stat static method

Future<FileStat> stat(
  1. String path
)

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

If path is a symbolic link then it is resolved and results for the resulting file are returned.

Returns a Future which completes with the same results as statSync.

Implementation

static Future<FileStat> stat(String path) {
  final IOOverrides? overrides = IOOverrides.current;
  if (overrides == null) {
    return _stat(path);
  }
  return overrides.stat(path);
}