(db: Database, path: string)
| 410 | } |
| 411 | |
| 412 | function parentAndNameForResolvedPath(db: Database, path: string): [number, string] { |
| 413 | const { parts, path: canonical } = canonicalizePath(path); |
| 414 | if (parts.length === 0) { |
| 415 | throw createWorkspaceError("EISDIR", "cannot write to the root directory", canonical); |
| 416 | } |
| 417 | return [resolveParent(db, parts, canonical), parts[parts.length - 1]]; |
| 418 | } |
| 419 | |
| 420 | // Update an inode's chunk-backed representation in place. Iterates over |
| 421 | // the full chunk grid but only touches `vfs_chunks` rows whose contents |
no test coverage detected