How to use the fswin.getAttributesSync function in fswin

To help you get started, we’ve selected a few fswin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stevenvachon / winattr / lib / binding / index.js View on Github external
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);
};

fswin

nodejs fs extensions for windows

MIT
Latest version published 4 months ago

Package Health Score

72 / 100
Full package analysis