MCPcopy Create free account
hub / github.com/GoogleChrome/samples / createFile

Function createFile

sqlite-wasm-cos/sqlite3-node.mjs:2801–2805  ·  view source on GitHub ↗
(parent, name, properties, canRead, canWrite)

Source from the content-addressed store, hash-verified

2799 return current;
2800 },
2801 createFile(parent, name, properties, canRead, canWrite) {
2802 var path = PATH.join2(typeof parent == 'string' ? parent : FS.getPath(parent), name);
2803 var mode = FS_getMode(canRead, canWrite);
2804 return FS.create(path, mode);
2805 },
2806 createDataFile(parent, name, data, canRead, canWrite, canOwn) {
2807 var path = name;
2808 if (parent) {

Callers

nothing calls this directly

Calls 2

FS_getModeFunction · 0.70
getPathMethod · 0.45

Tested by

no test coverage detected