pub fn file_progress_bar(total_bytes: u64, operation: &str) -> ProgressBarExpand description
Create a progress bar for a file operation that is conditionally visible.
The progress bar is hidden (no terminal output) when:
total_bytesis belowLARGE_FILE_THRESHOLD(10 MB), or- stdout is not a TTY (e.g. when piped to another process or script).
For large files on a TTY the bar shows bytes transferred, rate, and ETA, matching the style used across all other IPFRS file operations.
§Arguments
total_bytes– Total expected size of the transfer in bytes.operation– Short verb shown at the start of the bar line (e.g."Adding","Downloading").