MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / ArchiveEntry

Class ArchiveEntry

atomic-repository/src/archive.rs:410–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408/// An entry in the archive manifest.
409#[derive(Debug, Clone)]
410pub struct ArchiveEntry {
411 /// Path in the archive.
412 pub path: String,
413
414 /// Whether this is a directory.
415 pub is_directory: bool,
416
417 /// File size in bytes (0 for directories).
418 pub size: u64,
419
420 /// File permissions (Unix mode).
421 pub mode: u32,
422
423 /// Modification timestamp.
424 pub mtime: DateTime<Utc>,
425
426 /// Inode identifier from the repository.
427 pub inode: Option<Inode>,
428}
429
430impl ArchiveEntry {
431 /// Create a file entry.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected