nismod / open-gira

Open-data Global Infrastructure Risk/Resilience Analysis
https://nismod.github.io/open-gira/
MIT License
12 stars 3 forks source link

Downloaded/extracted files might be better write-protected #116

Open tomalrussell opened 1 year ago

tomalrussell commented 1 year ago

Snakemake can create protected outputs - which are set as read-only. It might make sense for all downloaded files to be created this way to avoid accidental modification or deletion.

There's also a side-effect of opening GeoPackages in fairly recent (but not latest) versions of QGIS (ref) that means the file is modified, which means opening up some files for exploration can end up triggering a lot of downstream jobs. Workarounds include making the file read-only, or running touch -d '-1 week' ./file.gpkg to change the file mtime.