(self, file_size=0)
| 2234 | return seed_path |
| 2235 | |
| 2236 | def get_cloud_upload_progress_bytes(self, file_size=0): |
| 2237 | progress_bytes = max(int(UNICOM_CLOUD_UPLOAD_PROGRESS_BYTES or 0), 1) |
| 2238 | if file_size and int(file_size) > 0: |
| 2239 | return min(int(file_size), progress_bytes) |
| 2240 | return progress_bytes |
| 2241 | |
| 2242 | def parse_cloud_size_to_bytes(self, value): |
| 2243 | match = re.search(r'(\d+(?:\.\d+)?)\s*([KMGT])', str(value).upper()) |
no outgoing calls
no test coverage detected