bentley-historical-library / bhl_born_digital_utils

Scripts used for removable media transfers at the Bentley Historical Library
5 stars 8 forks source link

robocopy.py, runbe.py, & optical_types.py #29

Closed MaryseLT closed 4 years ago

MaryseLT commented 4 years ago

This pull request for robocopy.py is to copy transferred content from to the digital archive using Windows 7 "robocopy" from the command line. If content from a new accession is being transferred, then a folder with the accession number must be made in the digital archive prior to running the script. Once the script is running, the user will be asked to enter the accession number. This will create the robocopy log name, which will be located in the new folder with the transferred content. It works just like robocopy would in the Windows Powershell, but the user does not need to type the whole command out.

MaryseLT commented 4 years ago

Also, this pull request is for runbe.py. It is used to streamline running bulk_extractor.exe from the command line. Scanning image metadata is turned off using the parameter "-x exif" to save time and avoid false positives. When entering the parameters into the command line the folder you want to be scanned must have double quotes before and after the path. Once the script is running, the user will be asked to enter a new folder name. This will create the folder where the scan results are placed. That folder will be located in the directory where this script is running from at the sibling level.

MaryseLT commented 4 years ago

optical_types is used to remove barcodes for optical discs exclusively containing audio & video files and barcodes marked for separation from the list of content to be robocopied. First place the CSV inventory file within the folder containing the this script, it is the file name entered in the command line and must be in the same directory. The barcodes are filtered from a CSV file that contains an inventory of transferred content. Once the targets have been filtered they will be ROBOCOPIED (based on Windows 7 commands) to the folder where this script is running from. Robocopy is used because the program is smart enough to copy irregular file paths that the command line in not capable of handling. Once the robocopy is complete, the content can be scanned by bulk_extractor.exe

MaryseLT commented 4 years ago

Resolved #30 by editing print statements to print a new line before each statement.