Create a LaTeX-table with persistent description of files. Even if files are moved, renamed or changed. Automatically add new files and remove deleted files from table.
The script:
- Parses a folder of choise recursively, storing the filepath and MD5-hash of each file. It ignores empty files, ".DS-store"-files and gives a warning of duplicate files (same hash).
- Parses the existing output-file (if any) for previous filepaths and MD5-hashes.
- Categorizes hashes in sets of added, unchanged, moved, deleted or changed files.
- Creates a table with relative path from folder of choice, filename, description and hashvalue.
- Writes the table to LaTeX, hiding the row with hashvalues.
- md5sum (brew install md5sha1sum)
- tabulate (pip install tabulate)