Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Folder

Represents a folder item in the file system.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

adapter

adapter: Adapter

The file system adapter instance to use.

committed

committed: boolean

The status of the commit.

contents

contents: Map<string, Item>

The children of the folder.

name

name: string

The name of the item.

Optional parent

parent: ParentItem

The parent of the item.

path

path: string

The absolute path to the item.

type

type: "folder"

The type of item, a folder.

Accessors

count

  • get count(): number

size

  • get size(): number

Methods

commit

  • commit(): Promise<void>

delete

  • delete(name: string): boolean

get

  • get(name: string): Item

list

  • list(): string[]
  • list(long: true): Item[]
  • list(long: boolean): string[] | Item[]

set

  • set(name: string, item: Item): void

Generated using TypeDoc