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

Method file_too_large

atomic-core/src/record/error.rs:371–377  ·  view source on GitHub ↗

Create a new file-too-large error. # Arguments `path` - The file that is too large `size` - The actual size in bytes `max_size` - The maximum allowed size in bytes

(path: impl Into<PathBuf>, size: u64, max_size: u64)

Source from the content-addressed store, hash-verified

369 /// * `size` - The actual size in bytes
370 /// * `max_size` - The maximum allowed size in bytes
371 pub fn file_too_large(path: impl Into<PathBuf>, size: u64, max_size: u64) -> Self {
372 Self::FileTooLarge {
373 path: path.into(),
374 size,
375 max_size,
376 }
377 }
378
379 /// Create a new inode-not-found error.
380 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected