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

Method writeFileSync

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

* **Supplemental**: Synchronously 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: string | Buffer, encoding: string | null, flag: FileFlag, mode: number)

Source from the content-addressed store, hash-verified

249 * The encoding option is ignored if data is a buffer.
250 */
251 writeFileSync(fname: string, data: string | Buffer, encoding: string | null, flag: FileFlag, mode: number): void;
252 /**
253 * **Supplemental**: Asynchronously append data to a file, creating the file if
254 * it not yet exists.

Callers 15

webpack.config.jsFile · 0.65
nop.jsFile · 0.65
bad_lookup.jsFile · 0.65
readdir_empty.jsFile · 0.65
readdir.jsFile · 0.65
files.jsFile · 0.65
delete-log-test.tsFile · 0.65
quota-test.tsFile · 0.65
webpack.config.jsFile · 0.65
renameSyncMethod · 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