cd needs work

This commit is contained in:
2025-02-11 15:20:57 -05:00
parent ee7b2168d9
commit 9970c58e2b
8 changed files with 83 additions and 30 deletions

View File

@ -8,9 +8,12 @@ const enum Permissions {
rw
}
type FsEntrySignature = Entry<Entry<{}>[]> //I did this!
const user = [
Entry("about_me.txt", "about me inside", Permissions.rw),
Entry("services.txt", "services inside", Permissions.rw),
Entry("hi", [], Permissions.rw)
]
const home = [
Entry("user", user, Permissions.rw)
@ -25,7 +28,7 @@ const fs = [
type File = string
interface Entry<T = File> {
readonly inner: T,
readonly inner?: T,
readonly name: string,
readonly type: EntryType,
readonly permissions: Permissions
@ -41,6 +44,7 @@ function Entry<T = File>(name: string, inner: T, permissions: Permissions): Entr
export {
fs,
type FsEntrySignature,
EntryType,
Permissions,
Entry