Add a directory. # Example ```rust use atomic_core::output::{Memory, WorkingCopyRead}; let wc = Memory::new(); wc.add_directory("src/utils"); assert!(wc.is_directory("src/utils")); ```
(&self, path: &str)
| 337 | /// assert!(wc.is_directory("src/utils")); |
| 338 | /// ``` |
| 339 | pub fn add_directory(&self, path: &str) { |
| 340 | self.ensure_directories(path); |
| 341 | } |
| 342 | |
| 343 | /// Mark a path as non-writable. |
| 344 | /// |