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

Method exceeds_max_size

atomic-core/src/record/workflow/options.rs:336–341  ·  view source on GitHub ↗

Check if a file size exceeds the maximum for diffing. # Arguments `size` - File size in bytes # Returns `true` if the file is too large for text diffing.

(&self, size: u64)

Source from the content-addressed store, hash-verified

334 ///
335 /// `true` if the file is too large for text diffing.
336 pub fn exceeds_max_size(&self, size: u64) -> bool {
337 match self.max_file_size {
338 Some(max) => size > max,
339 None => false,
340 }
341 }
342
343 /// Check if content should be diffed based on current options.
344 ///

Callers 1

process_added_fileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected