Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DirectoryList

Wrapper for directory structure in filesystem. May be recursive

Hierarchy

  • DirectoryList

Index

Constructors

Accessors

  • get name(): string
  • set name(name: string): void
  • get stats(): undefined | Stats
  • Stats info of directory.

    see

    {@link Stats NodeJS.fs.Stats}

    Returns undefined | Stats

Methods

  • [toPrimitive](hint: TypeOfTag): string | void
  • get(fullname?: boolean): DirectoryListJSONContent
  • Get JSON representation of inner directory structure on filesystem

    Parameters

    • fullname: boolean = false

    Returns DirectoryListJSONContent

  • toJSON(fullname?: boolean, root?: boolean): DirectoryListJSON
  • Prefered method to serialize instance

    since

    1.3.0

    Parameters

    • fullname: boolean = false
    • root: boolean = true

    Returns DirectoryListJSON

  • toString(): string

Generated using TypeDoc