Home > @microsoft/node-core-library > FileSystem > getPosixModeBits

FileSystem.getPosixModeBits() method

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

Signature:

static getPosixModeBits(path: string): PosixModeBits;

Parameters

Parameter Type Description
path string The absolute or relative path to the object that should be updated.

Returns:

PosixModeBits