Skip to content

File permissions when saving a netcdf file #5807

Answered by keewis
vrx- asked this question in Q&A

You must be logged in to vote

not that I'm aware of. However, you can use the builtin os or pathlib modules to do the chmod immediately after writing:

ds.to_netcdf(path)
path.chmod(0o644)  # pathlib
os.chmod(path, 0o644)

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by andersy005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants