https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Alex Beach

03/20/2024, 10:03 PM
what is the best way for a task to pass a bunch of images to the next task? I have a task that downloads a bunch of images and needs to pass the list of images to the next task
or is it better to return a directory with all the file FlyteDirectory? or is it possible have flyte reutrn a list of FlyteFile?
k

Kevin Su

03/20/2024, 10:09 PM
it’s better to return a directory
we will batch upload files in the directory https://github.com/flyteorg/flytekit/pull/1806
a

Alex Beach

03/20/2024, 10:20 PM
what about if i need multiple directories
can i have like:
Copy code
@task()
def my_foo() -> List[FlyteDirectory]:
    pass
k

Kevin Su

03/20/2024, 10:21 PM
of course, you can have a list of anything