some small work on the filesystem class
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user