Skip to content

chmod of download path fails if someone else already created the directory #94

Description

@ledm

This line fails if you try to run over a job that someone else already created.

os.chmod(outputFold, st.st_mode | stat.S_IWGRP)

Same issue for this line:
https://github.com/valeriupredoi/bgcval2/blob/main/bgcval2/download_from_mass.py#L480

    outfile.write(download_script_txt)

Trying to overwrite a file that someone else owns.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions