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

Method file

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

Create a file entry.

(path: impl Into<String>, size: u64)

Source from the content-addressed store, hash-verified

430impl 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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected