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

Method createFileSync

src/core/file_system.ts:488–490  ·  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)

Source from the content-addressed store, hash-verified

486 * flag.
487 */
488 public createFileSync(p: string, flag: FileFlag, mode: number): File {
489 throw new ApiError(ErrorCode.ENOTSUP);
490 }
491 public openSync(p: string, flag: FileFlag, mode: number): File {
492 // Check if the path exists, and is a file.
493 let stats: Stats;

Callers 1

openSyncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected