The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
2.1.9
RawDataPath
Package: flyte.models
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.
Parameters
class RawDataPath(
path: str,
path_rewrite: Optional[PathRewrite],
)| Parameter | Type | Description |
|---|---|---|
path |
str |
|
path_rewrite |
Optional[PathRewrite] |
Methods
| Method | Description |
|---|---|
from_local_folder() |
Create a new context attribute object, with local path given. |
get_random_remote_path() |
Returns a random path for uploading a file/directory to. |
from_local_folder()
def from_local_folder(
local_folder: str | pathlib.Path | None,
) -> RawDataPathCreate a new context attribute object, with local path given. Will be created if it doesn’t exist.
| Parameter | Type | Description |
|---|---|---|
local_folder |
str | pathlib.Path | None |
Returns: Path to the temporary directory
get_random_remote_path()
def get_random_remote_path(
file_name: Optional[str],
) -> strReturns a random path for uploading a file/directory to. This file/folder will not be created, it’s just a path.
| Parameter | Type | Description |
|---|---|---|
file_name |
Optional[str] |
If given, will be joined after a randomly generated portion. |