static/jsvm/interfaces/fs.FileMode.html
A FileMode represents a file's mode and permission bits. The bits have the same definition on all systems, so that information about files can be moved from one system to another portably. Not all bits apply to all systems. The only required bit is [ModeDir] for directories.
IsDir reports whether m describes a directory. That is, it tests for the [ModeDir] bit being set in m.
IsRegular reports whether m describes a regular file. That is, it tests that no mode type bits are set.
Perm returns the Unix permission bits in m (m & [ModePerm]).
Type returns type bits in m (m & [ModeType]).
OSLightDark
Generated using TypeDoc