Skip to main content

estimate_workspace_bytes

Function estimate_workspace_bytes 

Source
pub fn estimate_workspace_bytes(
    workspace: &Path,
    limit_bytes: Option<u64>,
) -> Result<u64, Error>
Expand description

Sum file sizes under workspace, honoring gitignore + skip-dir rules. Stops early once limit_bytes would be exceeded (pass None for full scan).