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
| 58 | /// file |
| 59 | /// - Hard links where multiple files point to the same data |
| 60 | pub struct Directory { |
| 61 | subdirs: BTreeMap<String, Arc<RwLock<Directory>>>, |
| 62 | files: BTreeMap<String, Arc<RwLock<File>>> |
| 63 | } |
| 64 | |
| 65 | impl Directory { |
| 66 | fn new() -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected