| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > FileSystem > formatPosixModeBits
Returns a 10-character string representation of a PosixModeBits value similar to what would be displayed by a command such as "ls -l" on a POSIX-like operating system.
Signature:
static formatPosixModeBits(modeBits: PosixModeBits): string;|
Parameter |
Type |
Description |
|---|---|---|
|
modeBits |
POSIX-style file mode bits specified using the PosixModeBits enum |
Returns:
string
For example, PosixModeBits.AllRead | PosixModeBits.AllWrite would be formatted as "-rw-rw-rw-".