MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / saveHandle

Function saveHandle

src/pkg/utils/filehandle-db.ts:21–23  ·  view source on GitHub ↗
(key: string, handle: FileSystemFileHandle)

Source from the content-addressed store, hash-verified

19
20// Save a file handle with a timestamp
21export async function saveHandle(key: string, handle: FileSystemFileHandle): Promise<void> {
22 await db.handles.put({ handle, timestamp: Date.now() }, key);
23}
24
25// Load a file handle by key
26export async function loadHandle(key: string): Promise<FileSystemFileHandle> {

Callers 2

onDropFunction · 0.90
initAsyncFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected