Function useFileEntry

  • Parameters

    • options: UseFileEntryOptions = {}

    Returns {
        getDirectory: (
            path: string,
            options?: { create?: boolean },
        ) => Promise<DirectoryEntry>;
        getFile: (
            path: string,
            options?: { create?: boolean },
        ) => Promise<FileEntry>;
        isSupported: boolean;
        listDirectory: (dirEntry: DirectoryEntry) => Promise<Entry[]>;
        PERSISTENT: any;
        readFile: (fileEntry: FileEntry) => Promise<string>;
        removeEntry: (entry: Entry) => Promise<void>;
        requestFileSystem: (type?: number, size?: number) => Promise<FileSystem>;
        TEMPORARY: any;
        writeFile: (fileEntry: FileEntry, data: Blob) => Promise<void>;
    }