Make swash output read-only
This commit is contained in:
parent
358b57f23d
commit
8ad877af9b
1 changed files with 4 additions and 0 deletions
|
@ -66,4 +66,8 @@ with tempfile.TemporaryDirectory(prefix="swash_", dir=".") as tmp_raw:
|
||||||
log.info(f"Moving swash output to '{out}'")
|
log.info(f"Moving swash output to '{out}'")
|
||||||
shutil.move(tmpdir, out)
|
shutil.move(tmpdir, out)
|
||||||
|
|
||||||
|
for f in out.rglob("*"):
|
||||||
|
if f.is_file():
|
||||||
|
f.chmod(0o444)
|
||||||
|
|
||||||
log.info(f"Swash model finished successfully")
|
log.info(f"Swash model finished successfully")
|
||||||
|
|
Loading…
Reference in a new issue