- fixed a bug in dnTaverseTree where children would get pushed into the result in reverse order
- added an inode display to the `printTree` algorithm - removed a redundant type in *`signal.ts`* - improved `resolveInode` to now take `ShellState` instead of `FileSystem` and added an optional `abs` *`boolean`* argument to determine if the retuned path should be normalized or absolute - implemented a builtin `TreeNode` quicksort function - changed the `TreeNodeType` to a numeric enum - added a standalone `Posix` class that holds a const with character weights compliant with posix
This commit is contained in:
@@ -45,7 +45,7 @@ export interface DirectoryNode {
|
||||
} */
|
||||
|
||||
export enum TreeNodeType {
|
||||
File = "0",
|
||||
Directory = "1",
|
||||
//Symlink = "2",
|
||||
File = 0,
|
||||
Directory = 1,
|
||||
//Symlink = 2,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user