Calls the operating system's stat()
function (or equivalent) on path
.
Returns a FileStat object containing the data returned by stat()
. If the call fails, returns a FileStat object with FileStat.type set to FileSystemEntityType.notFound and the other fields invalid.
static FileStat statSync(String path) { final IOOverrides overrides = IOOverrides.current; if (overrides == null) { return _statSyncInternal(path); } return overrides.statSync(path); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/FileStat/statSync.html