Function check_disk_space
Source pub fn check_disk_space(
path: &Path,
required_size: u64,
) -> Result<(), Box<dyn Error + Send + Sync>>
Expand description
Check if there’s enough disk space for the download.
§Arguments
path - Target file path
required_size - Required space in bytes
§Errors
Returns an error if available space is less than required.