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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user