#Conditionally export to host

1 messages · Page 1 of 1 (latest)

winged wren
#

Judging from what I've read in other posts I don't think this is currently possible but what I want to do is write a directory with some logs back to the host when an exception occurs so:

try:
  ... some thing
except:
  # oh no something didn't work! 
  await client.host().directory("logs").export("/logs")

is there a way to make the directory mounted as writeable?

uneven monolith
winged wren
#

I don't think so, I've just been invoking my dagger code as script files (i.e. python dagger.py --some args)

#

I've been tuned out from dagger development for a bit guess I'll have to go catch up on how things have evolved

uneven monolith