- moved index code to dev.ts

- some work i dont know about or dont remember ¯\_(ツ)_/¯
This commit is contained in:
2026-09-11 22:50:08 +02:00
parent ec13299e95
commit 9c5bd71a5c
8 changed files with 153 additions and 138 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import { TreeNodeType, type DirectoryNode, type TreeNode } from "../filesystem/t
""
*/
export function resolvePath(state: ShellState, path: string): number {
export function resolvePath(state: ShellState, path: string): string {
const session = getCurrentSession(state);
const isAbsolute = path.startsWith("/"); // true
@@ -40,7 +40,7 @@ export function resolvePath(state: ShellState, path: string): number {
continue;
}
const inode = currentNode.children[name];
const inode = currentNode.content.get(name);
if (!inode)
throw {