Versions 136 to 318
new file, 258 lines
5+
9+
14+
16+
23+
31+
42+ this.mode = entry.kind === "dir" ? 0o040000 : entry.kind === "link" ? 0o120000 : entry.exec ? 0o100755 : 0o100644;
44+
48+
52+
57+
65+ entries = new Map<string, Entry>([["/", { kind: "dir", children: new Set(), mtimeMs: Date.now() }]]);
66+
80+
83+
88+
93+
96+
99+
105+
110+
114+
118+
124+
127+
133+
136+
142+
145+
150+
153+
157+
163+
166+
167+ /** options.mode with any execute bit (isomorphic-git passes 0o777 for 100755) makes the file executable. */
168+ async writeFile(path: string, data: string | Uint8Array | ArrayBuffer, options?: string | { mode?: number }) {
171+
173+ typeof data === "string" ? this.encoder.encode(data) : data instanceof Uint8Array ? data : new Uint8Array(data);
176+
184+
187+
193+
203+
207+
214+
219+
226+
230+
234+
239+
245+
253+
- MCP
- compare on this site's /mcp
- CLI
- abso diff 136 318 server/src/memory-fs.ts --json
- JSON
- /christopher/abso-core/compare/136..318?file=server%2Fsrc%2Fmemory-fs.ts&format=json