cu-mkp / fieldnotes-restructuring

0 stars 0 forks source link

Use generated mapping to arrange files into a hierarchical directory structure #12

Closed gschare closed 3 years ago

gschare commented 3 years ago

Now that we have generated a mostly-complete mapping.csv and found corrected most of the broken links in missing.csv, we are ready to use the mapping to quite simply iterate over each of the rows in the spreadsheet, locate the file named in the first column and rename it (creating intermediate folders along the way) to the second column. This can be done just using bash scripting, and although the Python script should prevent this, we should throw errors in case we try to rename a file to something that already exists.

gschare commented 3 years ago

restructure.py is in-progress on this

njr2128 commented 3 years ago

this has been completed