Skip to main content

DataAdapter

Methods

getName

getName: () => string

exists

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

stat

stat: (normalizedPath: string) => Promise<Stat>

list

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

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>

getResourcePath

getResourcePath: (normalizedPath: string) => 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>

remove

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

rename

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

copy

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