Description¶
Finds files in the deposit that are larger than the size limit, so they are not committed to the Git repository.
Writes every file over the limit to
generated/dot-ignore-local(only these additions, not a copy of.gitignore). Entries from earlier runs in that file are kept, so it can be run for several directories.When large files exist, writes
generated/large-file-report.md, which 24_amend_report.sh inserts into the report.
The pipelines then run apply_ignore_local.sh to append generated/dot-ignore-local to .gitignore, and commit both with 20_commit_code.sh.
Usage¶
./automations/01_check_file_sizes.sh <directory> [tag]directory- Deposit directory (openICPSR ID, Zenodo ID, and so on) or another directory, such as restricted data.tag- Accepted for consistency with the other scripts; not used.
Configuration¶
limitsizeinconfig.yml- Size limit in MB (default: 100).