some small work on the filesystem class

This commit is contained in:
2026-07-16 13:19:27 +02:00
parent ea82327ee8
commit b6365d6221
3 changed files with 69 additions and 13 deletions
+7 -8
View File
@@ -1,13 +1,6 @@
import type { TreeNodeType } from "./treenode";
export type FileSystemError = ParentNotFoundError | NotADirectoryError | AlreadyExistsError | NodeNotFoundError;
export interface ParentNotFoundError {
type: "ParentNotFound";
message: string;
timestamp: number;
parentInode: number;
}
export type FileSystemError = NotADirectoryError | AlreadyExistsError | NodeNotFoundError | IllegalMutationError;
export interface NotADirectoryError {
inode: number;
@@ -31,3 +24,9 @@ export interface NodeNotFoundError {
inode: number;
timestamp: number;
}
export interface IllegalMutationError {
type: "IllegalMutation";
message: string;
timestamp: number;
}