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.

Hierarchy

Methods

  • IsDir reports whether m describes a directory. That is, it tests for the [ModeDir] bit being set in m.

    Returns boolean

  • IsRegular reports whether m describes a regular file. That is, it tests that no mode type bits are set.

    Returns boolean

Generated using TypeDoc