Skip to content

Latest commit

 

History

History
76 lines (39 loc) · 1.21 KB

File metadata and controls

76 lines (39 loc) · 1.21 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

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, modeBits: PosixModeBits): void;

Parameters

Parameter

Type

Description

path

string

The absolute or relative path to the object that should be updated.

modeBits

PosixModeBits

POSIX-style file mode bits specified using the PosixModeBits enum

Returns:

void