docstr: post_store_path uploads the checkpoint to cloud storage and deletes the original files.
docstr_tok: ["post_store_path","uploads","the","checkpoint","to","cloud","storage","and","deletes","the","original","files","."]
code: def post_store_path(
      self, src: Union[str, os.PathLike], dst: str
  ) -> None:
      """
      post_store_path uploads the checkpoint to cloud storage and deletes the original files.
      """
      try:
          self.upload(src, dst)
      finally:
          util.rmtree_nfs_safe(src, ignore_errors=True)
  
file_path: determined/harness/determined/common/storage/cloud.py
imports: import contextlib
  import os
  import pathlib
  from typing import Iterator, Optional, Union
  from determined import util
  from determined.common import storage
label_desc: Use image node_id 2 for calling the CloudStorageManager obj's underlying member method code with example usage: obj.post_store_path(src, dst) without return types