Format bytes in a human-readable way. # Arguments `bytes` - The number of bytes # Returns A formatted string like "1.5 KB" or "2.3 MB". # Example ```rust use atomic::commands::clone::helpers::format_bytes; assert_eq!(format_bytes(512), "512 B"); assert_eq!(format_bytes(1536), "1.5 KB"); ``` Normalize a URL by removing trailing slashes. # Arguments `url` - The URL to normalize # Returns
(url: &str)
| 652 | /// |
| 653 | /// The URL with any trailing slashes removed. |
| 654 | pub fn normalize_url(url: &str) -> String { |
| 655 | url.trim_end_matches('/').to_string() |
| 656 | } |
| 657 | |
| 658 | /// Clean up a directory on error (e.g., failed clone). |
| 659 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected