MCPcopy
hub / github.com/Kaggle/kaggle-cli / load

Method load

src/kaggle/api/kaggle_api_extended.py:515–524  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 15

_load_previous_if_anyMethod · 0.80
read_config_fileMethod · 0.80
_read_config_fileMethod · 0.80
auth_login_cliMethod · 0.80
auth_revoke_tokenMethod · 0.80
dataset_create_newMethod · 0.80
kernels_pushMethod · 0.80

Calls 1

_load_previous_if_anyMethod · 0.95