MCPcopy Index your code
hub / github.com/jvilk/BrowserFS / createFile

Method createFile

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

* Create the file at path p with the given mode. Then, open it with the given * flag.

(p: string, flag: FileFlag, mode: number, cb: BFSCallback<File>)

Source from the content-addressed store, hash-verified

402 * flag.
403 */
404 public createFile(p: string, flag: FileFlag, mode: number, cb: BFSCallback<File>): void {
405 throw new ApiError(ErrorCode.ENOTSUP);
406 }
407 public open(p: string, flag: FileFlag, mode: number, cb: BFSCallback<File>): void {
408 const mustBeFile = (e: ApiError, stats?: Stats): void => {
409 if (e) {

Callers 6

mustBeFileMethod · 0.95
nop.jsFile · 0.45
bad_lookup.jsFile · 0.45
readdir_empty.jsFile · 0.45
readdir.jsFile · 0.45
files.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected