UNPKG

fs-zoo

Version:

File system abstractions and implementations

19 lines (18 loc) 1.17 kB
import { CrudApi, CrudApiExtended, CrudPutOptions } from './types'; export declare class CrudExtended implements CrudApiExtended { protected _fs: CrudApi; constructor(_fs: CrudApi); readonly put: (path: string, data?: Uint8Array | undefined, options?: CrudPutOptions) => Promise<void>; readonly putUtf8: (path: string, text: string, options?: CrudPutOptions) => Promise<void>; readonly getStream: (path: string) => Promise<ReadableStream>; readonly get: (path: string) => Promise<Uint8Array>; readonly getUtf8: (path: string) => Promise<string>; readonly getFile: (path: string) => Promise<File>; readonly del: (path: string, silent?: boolean) => Promise<void>; readonly info: (path: string) => Promise<import("./types").CrudResourceInfo>; readonly drop: (path: string, silent?: boolean) => Promise<void>; readonly scan: (path: string) => AsyncIterableIterator<import("./types").CrudCollectionEntry>; readonly list: (path: string) => Promise<import("./types").CrudCollectionEntry[]>; readonly from: (path: string) => Promise<CrudApiExtended>; readonly cp: (path: string, target: string) => Promise<void>; }