How to use the fswin.setAttributesSync 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 setSync = (path, attrs) =>
{
	const success = fswin.setAttributesSync( path, convertAttrs.to(attrs) );

	if (success === false)
	{
		// fswin does not return an error -- problem could be ENOENT,EPERM,etc
		throw new Error("unknown erorr");
	}
};
github davej / john / lib / win32.js View on Github external
deps.map(dep =>
      fswin.setAttributesSync(dep.path, {IS_HIDDEN: hidden}) ?
        Promise.resolve(Object.assign(dep, {hidden})) :
        Promise.reject(new Error(`Failed to modify dir attr: ${dep.path}`))
    )

fswin

nodejs fs extensions for windows

MIT
Latest version published 2 months ago

Package Health Score

73 / 100
Full package analysis