Options
All
  • Public
  • Public/Protected
  • All
Menu

Class File

Represents a file item in the file system.

Hierarchy

  • ItemBase
    • File

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: Buffer

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: "file"

The type of item, a file.

Accessors

size

  • get size(): number

Methods

commit

  • commit(): Promise<void>

Generated using TypeDoc