Versions 149 to 150
new file, 235 lines
5+
9+
14+
16+
24+
28+ entry.kind === "file" ? entry.data.byteLength : entry.kind === "link" ? enc.encode(entry.target).byteLength : 0;
31+ this.mode = entry.kind === "dir" ? 0o040000 : entry.kind === "link" ? 0o120000 : entry.exec ? 0o100755 : 0o100644;
33+
37+
41+
46+
50+ entries = new Map<string, Entry>([["/", { kind: "dir", children: new Set(), mtimeMs: Date.now() }]]);
51+
65+
68+
73+
78+
81+
84+
90+
95+
99+
103+
109+
112+
118+
121+
127+
130+
135+
138+
142+
148+
151+
152+ /** options.mode with any execute bit (isomorphic-git passes 0o777 for 100755) makes the file executable. */
153+ async writeFile(path: string, data: string | Uint8Array | ArrayBuffer, options?: string | { mode?: number }) {
156+
158+ typeof data === "string" ? this.encoder.encode(data) : data instanceof Uint8Array ? data : new Uint8Array(data);
160+
167+
170+
176+
181+
185+
192+
196+
203+
207+
211+
216+
222+
230+
- MCP
- compare on this site's /mcp
- CLI
- abso diff 149 150 server/src/memory-fs.ts --json
- JSON
- /christopher/abso-core/compare/149..150?file=server%2Fsrc%2Fmemory-fs.ts&format=json