Skip to main content

RawDataPath

A class representing the raw data path for a task. This is used to store the raw data for the task execution and also get mutations on the path.

Attributes

  • path: string
    • The path to the raw data.

Methods

def from_local_folder(local_folder: str | pathlib.Path | None = None) - > [RawDataPath](src_flyte_models_rawdatapath)
  • Create a new context attribute object, with local path given. Will be created if it doesn't exist. :return: Path to the temporary directory

  • Parameters

    • local_folder: str | pathlib.Path | None
      • local path given
  • Return Value: RawDataPath

    • Path to the temporary directory
def get_random_remote_path(file_name: Optional[str] = None) - > str
  • Returns a random path for uploading a file/directory to.

     :param file_name: If given, will be joined after a randomly generated portion.
    :return:
  • Parameters

    • file_name: Optional[str]
      • If given, will be joined after a randomly generated portion.
  • Return Value: str

    • random path for uploading a file/directory to