Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const getSync = path =>
{
const result = fswin.getAttributesSync(path);
if (result === null)
{
// fswin does not return an error -- problem could be ENOENT,EPERM,etc
throw new Error("unknown erorr");
}
return convertAttrs.from(result);
};