- Fixed output formatting error in ls.ts
- Added an exported `Termos` object entry point - Defined a basic config for the entry point - Wrote a self contained initialization function for parsin the config into a returned `Shell` instance - Adjusted `dev.ts` to use the said entry point
This commit is contained in:
@@ -384,7 +384,7 @@ export class FileSystem {
|
||||
}
|
||||
| { type: NodeType.Directory; mode: number; owner: number; group: number }
|
||||
| { type: NodeType.Symlink; mode: number; owner: number; group: number; target: string },
|
||||
) {
|
||||
): Promise<number> {
|
||||
const pdev = this._VDiskManager.getDisk(parent.device);
|
||||
const parentNode = this.resolveNode(parent);
|
||||
|
||||
@@ -436,7 +436,7 @@ export class FileSystem {
|
||||
} satisfies InvalidNodeNameError;
|
||||
}
|
||||
|
||||
await pdev.createNodeEntry(parent.inode, name, data);
|
||||
return pdev.createNodeEntry(parent.inode, name, data);
|
||||
}
|
||||
|
||||
public async deleteNode(target: NodePointer) {
|
||||
|
||||
Reference in New Issue
Block a user