- moved index code to dev.ts
- some work i dont know about or dont remember ¯\_(ツ)_/¯
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user