Skip to content

Investigate file system API #21

Open
@Sheraff

Description

Maybe media files (+ images) might be more reliably stored in the navigator's private file system https://web.dev/file-system-access/

const root = await navigator.storage.getDirectory();
// Create a new file handle.
const fileHandle = await root.getFileHandle('Untitled.txt', { create: true });
// Create a new directory handle.
const dirHandle = await root.getDirectoryHandle('New Folder', { create: true });
// Recursively remove a directory.
await root.removeEntry('Old Stuff', { recursive: true });

I haven't had any problems so far with the service worker cache. This is just in case.

Metadata

Assignees

No one assigned

    Labels

    robustnessNot a bug, but not a good sign either

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions