Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a URIStorage Overlay that treats the configured Adapter as a psuedo File System

Hierarchy

Index

Constructors

constructor

Properties

EVENT_MOUNTED

EVENT_MOUNTED: IEvent<IMountedEvent> = event<IMountedEvent>()

Event that dispatches whenever the Adapter is mounted

EVENT_UNMOUNTED

EVENT_UNMOUNTED: IEvent<IMountedEvent> = event<IMountedEvent>()

Event that dispatches whenever the Adapter is unmounted

adapter

adapter: BaseAdapter

Represents the Adapter configured to be overlaid

options

Represents the standardized options passed into the constructor

Methods

create_directory

  • create_directory(directory_path: string): Promise<void>

create_scope

create_url_object

  • create_url_object(file_path: string): Promise<IURLObject>

exists

  • exists(path: string): Promise<boolean>

get_stats

has_feature

  • has_feature(feature: string): boolean

is_mounted

  • is_mounted(): boolean
  • Returns if the Overlay is currently mounted

    NOTE: There is no base concept of "mounting", it could be establishing a connection to a FTP server, mounting a local SQLite3 database, etc, etc

    Returns boolean

mount

  • mount(): Promise<void>
  • Mounts the Overlay if currently unmounted

    NOTE: There is no base concept of "mounting", it could be establishing a connection to a FTP server, mounting a local SQLite3 database, etc, etc

    Returns Promise<void>

read_directory

read_file

  • read_file(file_path: string): Promise<Uint8Array>

read_file_json

  • read_file_json<T>(file_path: string, reviver?: IJSONReviver): Promise<T>

read_file_text

  • read_file_text(file_path: string): Promise<string>

remove_directory

remove_file

  • remove_file(file_path: string): Promise<void>

unmount

  • unmount(): Promise<void>
  • Unmounts the Overlay if currently mounted

    NOTE: There is no base concept of "mounting", it could be establishing a connection to a FTP server, mounting a local SQLite3 database, etc, etc

    Returns Promise<void>

watch_directory

watch_file

write_file

  • write_file(file_path: string, payload: Uint8Array): Promise<void>
  • Writes a Uint8Array payload to a File. Creating a new File in the File System, if not previously made

    Parameters

    • file_path: string
    • payload: Uint8Array

    Returns Promise<void>

write_file_json

  • write_file_json<T>(file_path: string, value: T, replacer?: IJSONReplacer, space?: number | string): Promise<void>
  • Writes to the given file_path, encoding value as JSON text

    Type parameters

    Parameters

    • file_path: string
    • value: T
    • Optional replacer: IJSONReplacer
    • Optional space: number | string

    Returns Promise<void>

write_file_text

  • write_file_text(file_path: string, text: string): Promise<void>
  • Writes to the given file_path, encoding text as UTF-8 bytes

    Parameters

    • file_path: string
    • text: string

    Returns Promise<void>

Legend

  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Variable
  • Function
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Inherited property
  • Inherited method
  • Enumeration

Generated using TypeDoc