Skip to main content

FileSystemAdapter

Implements DataAdapter

Constructor​

constructor();

Methods​

getName​

getName(): string;

getBasePath​

getBasePath(): string;

mkdir​

mkdir(normalizedPath: string): Promise<void>;

trashSystem​

trashSystem(normalizedPath: string): Promise<boolean>;

trashLocal​

trashLocal(normalizedPath: string): Promise<void>;

rmdir​

rmdir(normalizedPath: string, recursive: boolean): Promise<void>;

read​

read(normalizedPath: string): Promise<string>;

readBinary​

readBinary(normalizedPath: string): Promise<ArrayBuffer>;

write​

write(normalizedPath: string, data: string, options?: DataWriteOptions): Promise<void>;

writeBinary​

writeBinary(normalizedPath: string, data: ArrayBuffer, options?: DataWriteOptions): Promise<void>;

append​

append(normalizedPath: string, data: string, options?: DataWriteOptions): Promise<void>;

process​

process(normalizedPath: string, fn: (data: string) => string, options?: DataWriteOptions): Promise<string>;

getResourcePath​

getResourcePath(normalizedPath: string): string;

getFilePath​

getFilePath(normalizedPath: string): string;

Returns the file:// path of this file

remove​

remove(normalizedPath: string): Promise<void>;

rename​

rename(normalizedPath: string, normalizedNewPath: string): Promise<void>;

copy​

copy(normalizedPath: string, normalizedNewPath: string): Promise<void>;

exists​

exists(normalizedPath: string, sensitive?: boolean): Promise<boolean>;

stat​

stat(normalizedPath: string): Promise<Stat | null>;

list​

list(normalizedPath: string): Promise<ListedFiles>;

getFullPath​

getFullPath(normalizedPath: string): string;

readLocalFile​

static readLocalFile(path: string): Promise<ArrayBuffer>;

mkdir​

static mkdir(path: string): Promise<void>;