Create a file entry.
(path: impl Into<String>, size: u64)
| 430 | impl ArchiveEntry { |
| 431 | /// Create a file entry. |
| 432 | pub fn file(path: impl Into<String>, size: u64) -> Self { |
| 433 | Self { |
| 434 | path: path.into(), |
| 435 | is_directory: false, |
| 436 | size, |
| 437 | mode: 0o644, |
| 438 | mtime: Utc::now(), |
| 439 | inode: None, |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | /// Create a directory entry. |
| 444 | pub fn directory(path: impl Into<String>) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected