Loads a previous upload if it exists and is valid. This method checks for a previous upload information file and, if it exists, validates it. If the previous upload is valid, it loads the information and sets the `can_resume` flag to True.
(self)
| 513 | return None |
| 514 | |
| 515 | def load(self) -> None: |
| 516 | """Loads a previous upload if it exists and is valid. |
| 517 | |
| 518 | This method checks for a previous upload information file and, if it exists, |
| 519 | validates it. If the previous upload is valid, it loads the information |
| 520 | and sets the `can_resume` flag to True. |
| 521 | """ |
| 522 | if self.context.no_resume: |
| 523 | return |
| 524 | self._load_previous_if_any() |
| 525 | |
| 526 | def _load_previous_if_any(self) -> bool: |
| 527 | if not os.path.exists(self._upload_info_file_path): |