MCPcopy Index your code
hub / github.com/Kong/insomnia / writeExportedFileToFileSystem

Function writeExportedFileToFileSystem

packages/insomnia/src/common/export.tsx:362–366  ·  view source on GitHub ↗
(filename: string, jsonData: string, onDone: fs.NoParamCallback)

Source from the content-addressed store, hash-verified

360};
361
362const writeExportedFileToFileSystem = (filename: string, jsonData: string, onDone: fs.NoParamCallback) => {
363 // Remember last exported path
364 window.localStorage.setItem('insomnia.lastExportPath', path.dirname(filename));
365 fs.writeFile(filename, jsonData, {}, onDone);
366};
367
368export const exportAllToFile = (activeProjectName: string, workspacesForActiveProject: Workspace[]) => {
369 if (!workspacesForActiveProject.length) {

Callers 2

exportAllToFileFunction · 0.85
exportRequestsToFileFunction · 0.85

Calls 2

setItemMethod · 0.65
writeFileMethod · 0.45

Tested by

no test coverage detected