Unfortunatley, I haven't managed to complete the changes to the script below to submit it to code review. That being said I have set it up in such a way that it will create a structure suitable for testing. Using the default instructions below we can create a tree of:
225 directories, 1001 files
- To QA issue: https://github.com/artefactual/archivematica/issues/821#issue-278984149
- Standup a vm with the latest AM 1.7 branch
- Clone the archivematica-sampledata repository:
git clone https://github.com/artefactual/archivematica-sampledata
- Checkout branch dev/issue-25-create-deep-transfers,
git checkout dev/issue-25-create-deep-transfers
- Navigate to:
/archivematica-sampledata/createtransfers
- Run command:
python createtransfers.py create-deep-transfers 10 10
NB: The values10 10
are arbitrary and are only required when this is complete - deep_transfer should be available here:
archivematica-sampledata/TestTransfers/deep_transfer
and available to be used in QA
The branch: https://github.com/artefactual/archivematica-sampledata/tree/dev/issue-25-create-deep-transfers
Is almost complete, but things needed to complete it:
- handle subcommand values for directory depth and file no
- flake8 compliance
- code-review
- readme update
I won't be able to complete that until next week.
If the defaults need to be upped, the lines are here: https://github.com/artefactual/archivematica-sampledata/blob/dev/issue-25-create-deep-transfers/createtransfers/createtransfers.py#L244
I suggest just doubling or tripling what's there. The script will still run in a few seconds. Archivematica processing will take considerably more time. (It crashed my laptop this evening).
I've created three locations on the VM: