Back to Pocketbase

Interface FileMode

static/jsvm/interfaces/fs.FileMode.html

latest1.7 KB
Original Source

Interface FileMode

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

Index

Methods

isDirisRegularpermstringtype

Methods

isDir

  • isDir(): boolean

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

Returns boolean

isRegular

  • isRegular(): boolean

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

Returns boolean

perm

Perm returns the Unix permission bits in m (m & [ModePerm]).

Returns fs.FileMode

string

  • string(): string

Returns string

type

Type returns type bits in m (m & [ModeType]).

Returns fs.FileMode

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc