Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > FileSystem > changePosixModeBits

FileSystem.changePosixModeBits() method

Changes the permissions (i.e. file mode bits) for a filesystem object. Behind the scenes it uses fs.chmodSync().

Signature:

static changePosixModeBits(path: string, mode: PosixModeBits): void;

Parameters

ParameterTypeDescription
pathstringThe absolute or relative path to the object that should be updated.
modePosixModeBits

Returns:

void