lstat function
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;
}