MCPcopy Create free account
hub / github.com/anonymousRAID/OSINT-Mapping-Tool / openProjectFromFile

Function openProjectFromFile

src/context/ProjectContext.jsx:39–45  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

37 };
38
39 const openProjectFromFile = async (file) => {
40 const loaded = await readProjectFromFile(file);
41 setProject(loaded);
42 // The file represents a saved state — mark the recent entry as saved.
43 saveRecent(loaded, { lastSavedAt: new Date().toISOString() });
44 return loaded;
45 };
46
47 // Resume a project from a stored recent snapshot (no file read).
48 const openProjectFromSnapshot = (snapshot) => {

Callers 1

handleFileChosenFunction · 0.85

Calls 2

readProjectFromFileFunction · 0.90
saveRecentFunction · 0.90

Tested by

no test coverage detected