Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const set = (path, attrs, callback) =>
{
fswin.setAttributes(path, convertAttrs.to(attrs), success =>
{
// fswin does not return an error -- problem could be ENOENT,EPERM,etc
callback( success===true ? null : new Error("unknown error") );
});
};