what is the best way for a task to pass a bunch of...
# ask-the-community
a
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
it’s better to return a directory
we will batch upload files in the directory https://github.com/flyteorg/flytekit/pull/1806
a
what about if i need multiple directories
can i have like:
Copy code
@task()
def my_foo() -> List[FlyteDirectory]:
    pass
k
of course, you can have a list of anything