statSync static method Null safety
- String path
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 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.
Implementation
static FileStat statSync(String path) {
final IOOverrides? overrides = IOOverrides.current;
if (overrides == null) {
return _statSyncInternal(path);
}
return overrides.statSync(path);
}