I’m getting some permissions errors in my task pod...
# ask-the-community
a
I’m getting some permissions errors in my task pods when I try to create files in the working directory, e.g.
with open("local_file.txt", "w") as f…
, because the working directory is
root
it looks like. Its fixed if I run
os.chdir("/tmp")
for example. Is there a way to change the working directory to avoid this?
s
can you try appending
flytekit.current_context().working_dir
to the directory or file you want to create? this shouldn't result in permission issues.