MCPcopy
hub / github.com/jvilk/BrowserFS / writeFile

Method writeFile

src/core/file_system.ts:244–244  ·  view source on GitHub ↗

* **Supplemental**: Asynchronously writes data to a file, replacing the file * if it already exists. * * The encoding option is ignored if data is a buffer.

(fname: string, data: any, encoding: string | null, flag: FileFlag, mode: number, cb: BFSOneArgCallback)

Source from the content-addressed store, hash-verified

242 * The encoding option is ignored if data is a buffer.
243 */
244 writeFile(fname: string, data: any, encoding: string | null, flag: FileFlag, mode: number, cb: BFSOneArgCallback): void;
245 /**
246 * **Supplemental**: Synchronously writes data to a file, replacing the file
247 * if it already exists.

Callers 15

nop.jsFile · 0.65
bad_lookup.jsFile · 0.65
readdir_empty.jsFile · 0.65
readdir.jsFile · 0.65
files.jsFile · 0.65
populate_directoryFunction · 0.65
rename-test.tsFile · 0.65
process_directoryFunction · 0.65

Implementers 10

LockedFSsrc/generic/locked_fs.ts
MountableFileSystemsrc/backend/MountableFileSystem.ts
WorkerFSsrc/backend/WorkerFS.ts
IsoFSsrc/backend/IsoFS.ts
UnlockedOverlayFSsrc/backend/OverlayFS.ts
FolderAdaptersrc/backend/FolderAdapter.ts
ZipFSsrc/backend/ZipFS.ts
XmlHttpRequestsrc/backend/XmlHttpRequest.ts
AsyncMirrorsrc/backend/AsyncMirror.ts
DropboxFileSystemsrc/backend/Dropbox.ts

Calls

no outgoing calls

Tested by

no test coverage detected