stat method

  1. @override
Future<FileStat> stat(
  1. String path
)
override

Asynchronously calls the operating system's stat() function on path. Returns a Future which completes with a io.FileStat object containing the data returned by stat(). If the call fails, completes the future with a io.FileStat object with .type set to FileSystemEntityType.NOT_FOUND and the other fields invalid.

Implementation

@override
Future<FileStat> stat(String path) {
  try {
    path = _resolve(path);
  } on FileSystemException {
    return Future<FileStat>.value(const _NotFoundFileStat());
  }
  return delegate.stat(_real(path, resolve: false));
}