- implemented the rest of long-format compatible ls flags
- split path_resolver functions to 3 separate functions that prioritize different points of relativity - added a `convertToUnit`function to convert from bytes to higher units of messurement - revert change: excluded inode 0 from tree traversal results
This commit is contained in:
@@ -11,7 +11,7 @@ export function dnTraverseTree(fs: FileSystem, root: number): number[] {
|
||||
const node = fs.getNode(stack.pop() as number);
|
||||
if (node === undefined) continue;
|
||||
|
||||
if (node.inode !== 0) result.push(node.inode);
|
||||
result.push(node.inode);
|
||||
|
||||
if (node.type === TreeNodeType.Directory) {
|
||||
const children = Object.values(node.children);
|
||||
|
||||
Reference in New Issue
Block a user