stat function

Stat stat(
  1. String pathToFile
)

Implementation

Stat stat(String pathToFile) {
  Stat stat;
  try {
    stat = Platform.isMacOS ? macStat(pathToFile) : linuxStat(pathToFile);
  } on PosixException catch (e) {
    throw StatException('${e.posixError} $pathToFile', e.code);
  }
  return stat;
}