From b4c07873d01b78344188ccbeed4e176d865e6c3a Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Mon, 10 Mar 2025 13:58:34 -0400 Subject: [PATCH] library init --- src/rt/rfwfs/fs/library.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/rt/rfwfs/fs/library.ts diff --git a/src/rt/rfwfs/fs/library.ts b/src/rt/rfwfs/fs/library.ts new file mode 100644 index 0000000..6257ee6 --- /dev/null +++ b/src/rt/rfwfs/fs/library.ts @@ -0,0 +1,30 @@ +import { ReadStatus } from "../enum" +import rfwfs, { type EntryCollection, type Entry } from "../main" + +import fs from "./root" + +let username: string = "user" +const libhome = {} as LibHome + +interface WorkingDir { + entry?: EntryCollection, + path: string[] +} +interface LibHome { + path: () => string[], + get: () => EntryCollection, +} + +function traverse_to_goal(path: string[]) { + if (working_dir.entry) { + + } +} + +libhome.path = function() { + return ["home", username] +} + +libhome.get = function() { + +} \ No newline at end of file