LS technically fixed (still debugging pos interpreter errors). Sort class added, witht he ability to sort nodes by inode and the object through a common method. Added an enum SortBy that contains sorting types for the node. Backend for sorting implemented, modification of the ls command still required (will need long flag support for other sorting methods, and timestamp display).

This commit is contained in:
2026-02-08 10:42:58 +01:00
parent 0877993b41
commit 60eb56da56
5 changed files with 145 additions and 85 deletions
+2 -2
View File
@@ -1,12 +1,11 @@
import type { readonly } from 'svelte/store';
import type { Permission, TimeStamps, User } from './bash';
import { Stack } from '../stack';
import { Pause } from '@lucide/svelte';
export enum Type {
Directory = 16384,
File = 32768,
SymblicLink = 40960
SymbolicLink = 40960
}
export type NodePerms = {
@@ -25,6 +24,7 @@ export type TreeNode = {
parent?: number;
name: string;
type: Type;
size: number; //Size in Bytes
children: number[];
content: string; // GUID of the cache file that contains the file contents.
link: number; // Links