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

Method with_size

atomic-core/src/record/context.rs:748–751  ·  view source on GitHub ↗

Set the file size.

(mut self, size: u64)

Source from the content-addressed store, hash-verified

746
747 /// Set the file size.
748 pub fn with_size(mut self, size: u64) -> Self {
749 self.size = Some(size);
750 self
751 }
752
753 /// Set the modification time.
754 pub fn with_mtime(mut self, mtime: std::time::SystemTime) -> Self {

Calls

no outgoing calls