Record a file write. # Arguments `path` - The path of the file that was written `bytes` - The number of bytes written # Example ```rust use atomic_core::output::repo::OutputOutcome; let mut outcome = OutputOutcome::new(); outcome.record_file("src/main.rs", 1024); assert_eq!(outcome.files_written(), 1); assert_eq!(outcome.bytes_written, 1024); ```
(&mut self, path: impl Into<String>, bytes: u64)
| 223 | /// assert_eq!(outcome.bytes_written, 1024); |
| 224 | /// ``` |
| 225 | pub fn record_file(&mut self, path: impl Into<String>, bytes: u64) { |
| 226 | self.files.push(FileWritten::new(path, bytes)); |
| 227 | self.bytes_written += bytes; |
| 228 | } |
| 229 | |
| 230 | /// Record a directory creation. |
| 231 | /// |