#Directory.export

1 messages · Page 1 of 1 (latest)

fair comet
#

Yes Directory.export does indeed export the directory to the client's local filesystem. But, if you're calling it from within a Dagger Function, that function is run inside a container, so you'll export it to the container's filesystem.

#

In the context of a Dagger Function, if you want a directory to be written to the end user's local filesystem, you should write a function that returns a Directory type. Then the user themselves can export it from the CLI when calling your function

median shale
#

Okay how would the user export the Directory? dagger export command?

#

Okay I think I see; they would use dagger call -o