Class BaseEntry

A base class for entries. This class is not meant to be used directly, but rather to be extended by other classes.

This class provides static methods for checking whether an entry is a file or a directory, and for creating an entry from entry data.

Hierarchy

Constructors

Methods

  • Checks whether the given entry is a directory.

    Parameters

    • entry: BaseEntry

      The entry or entry data to check.

    Returns entry is DirectoryEntry

  • Parameters

    • entry: EntryData

    Returns entry is DirectoryEntryData

  • Checks wether the given value is an entry.

    Parameters

    • entry: unknown

      The value to check.

    Returns entry is Entry

  • Checks whether the given entry is a file.

    Parameters

    • entry: BaseEntry

      The entry or entry data to check.

    Returns entry is FileEntry

  • Parameters

    • entry: EntryData

    Returns entry is FileEntryData

Generated using TypeDoc