Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Sophy

Implements

Index

Constructors

constructor

Properties

Readonly adapter

Adapter instance.

Methods

append

  • append(path: string, contents: string): Promise<File>

copy

  • copy(path: string, newPath: string): Promise<Node>

delete

  • delete(path: string): Promise<void>

directory

file

  • file(path: string): File

getMime

  • getMime(path: string): string | false | Promise<string | false>

getSize

  • getSize(path: string): number | Promise<number>

has

  • has(path: string): false | true | Promise<boolean>

listChildren

  • listChildren(path: string): Promise<Node[]>

makeDirectory

  • makeDirectory(path: string): Promise<Directory>

move

  • move(path: string, newPath: string): Promise<Node>

Private nodeFromMeta

prepend

  • prepend(path: string, contents: string): Promise<File>

put

  • put(path: string, contents: string): Promise<File>

putStream

  • putStream(path: string): Stream | Promise<Stream>

read

  • read(path: string): string | Promise<string>

readStream

  • readStream(path: string): Stream

update

  • update(path: string, contents: string): Promise<File>

updateStream

  • updateStream(path: string): Stream

write

  • write(path: string, contents: string): Promise<File>

writeStream

  • writeStream(path: string): Stream

Generated using TypeDoc