docstr: This method enables to put a file to the Drive in a blocking fashion.
  
  Arguments:
      path: The relative path to your files to be added to the Drive.
docstr_tok: ["This","method","enables","to","put","a","file","to","the","Drive","in","a","blocking","fashion",".","Arguments",":","path",":","The","relative","path","to","your","files","to","be","added","to","the","Drive","."]
code: def put(self, path: str) -> None:
      """This method enables to put a file to the Drive in a blocking fashion.
  
      Arguments:
          path: The relative path to your files to be added to the Drive.
  
      """
      if not self.component_name:
          raise Exception(
              "The component name needs to be known to put a path to the Drive."
          )
      if _is_flow_context():
          raise Exception(
              "The flow isn't allowed to put files into a Drive."
          )
  
      self._validate_path(path)
  
      if not self.allow_duplicates:
          self._check_for_allow_duplicates(path)
  
      from lightning.app.storage.copier import _copy_files
  
      src = pathlib.Path(os.path.join(self.root_folder, path)).resolve()
      dst = self._to_shared_path(
          path, component_name=self.component_name
      )
  
      _copy_files(src, dst)
  
imports: import os
  import pathlib
  import shutil
  import sys
  from copy import deepcopy
  from time import sleep, time
  from typing import Dict, List, Optional, Union
  from lightning.app.storage.path import LocalFileSystem, _filesystem, _shared_storage_path
  from lightning.app.utilities.component import _is_flow_context
label_desc: Use image node_id 4 for calling the Drive obj's underlying member method code with example usage: obj.put(path) without return types