acoustic-parrot-22802
10/16/2025, 4:58 PMancient-wolf-19325
10/16/2025, 4:58 PMfrom flytekit import task, workflow
from flytekit.types.directory import FlyteDirectory
from typing_extensions import Annotated
@task
def generate_files() -> Annotated[FlyteDirectory, BatchSize(100)]:
# create files in a directory and return as FlyteDirectory
...
@task
def process_files(d: Annotated[FlyteDirectory, BatchSize(100)]):
# process files in the directory
...
@workflow
def my_wf():
d = generate_files()
process_files(d=d)
Would you like more detail or examples?
Sources:
- FlyteDirectory documentation
- Flyte 1.10 release notes 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.acoustic-parrot-22802
10/16/2025, 4:59 PMancient-wolf-19325
10/16/2025, 4:59 PMfrom flytekit import task
from flytekit.types.directory import FlyteDirectory
@task
def process_gcs_dir(data: FlyteDirectory):
# data.path will be a local path after download
...
Would you like more detail or a full workflow example?
Sources:
- FlyteDirectory documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.acoustic-parrot-22802
10/16/2025, 5:02 PMancient-wolf-19325
10/16/2025, 5:02 PMacoustic-parrot-22802
10/16/2025, 5:03 PMancient-wolf-19325
10/16/2025, 5:03 PM