MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / Directory

Class Directory

ramdisk/src/main.rs:60–63  ·  view source on GitHub ↗

A tree structure of directories containing File objects All subdirectories and files are wrapped in Arc > because: - Multiple processes may hold handles to the same directory or file - Hard links where multiple files point to the same data

Source from the content-addressed store, hash-verified

58/// file
59/// - Hard links where multiple files point to the same data
60pub struct Directory {
61 subdirs: BTreeMap<String, Arc<RwLock<Directory>>>,
62 files: BTreeMap<String, Arc<RwLock<File>>>
63}
64
65impl Directory {
66 fn new() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected