| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > FileSystem > getPosixModeBits
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;|
Parameter |
Type |
Description |
|---|---|---|
|
path |
string |
The absolute or relative path to the object that should be updated. |
Returns:
This calls FileSystem.getStatistics() to get the POSIX mode bits. If statistics in addition to the mode bits are needed, it is more efficient to call FileSystem.getStatistics() directly instead.