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