https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Andrew

01/05/2024, 7:09 PM
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

Samhita Alla

01/06/2024, 9:39 AM
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.