feat(users): per-user sealed folders users/<id>/{home,apps,data,permissions}; storage SET_USER/LOCK/PURGE; init sign-in/sign-out loop (purge fresh/removed/guest, seed from factory, session start/stop); shell logout; pm user+system app shelves; terminal SIGNED_OUT; per-program stack (gatekeeper 12p); 128K load scratch

This commit is contained in:
2026-10-28 01:08:50 +01:00
parent 29a25bd8c2
commit 91f7d28834
38 changed files with 1156 additions and 378 deletions

View File

@@ -139,4 +139,14 @@ impl FileSystem for MockFileSystem {
fn rmdir(&mut self, _path: &[u8]) -> bool {
false
}
/// Flat: a tree is the files named under it.
fn purge(&mut self, path: &[u8]) -> bool {
for slot in self.files.iter_mut() {
if slot.as_ref().is_some_and(|f| f.name.as_bytes().starts_with(path)) {
*slot = None;
}
}
true
}
}