lstat function

Stat lstat(
  1. String pathToFile
)

Implementation

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

  return stat;
}