Open leefrank9527 opened 3 months ago
Please note that the cases bellow were not tested:
Another point to be pay attention is: if the reindexing or removing index operations are applied, the folder of individual collection will be deleted. In case of there are files inside the folder are opened by the other processes (For example: the PYWB is playing back the harvest or is generating the indexes), the folder can not be deleted by JVM (at least not able to find a way to delete it). If it's failed to delete the folder by JVM, then will call the system command "rm -rf " to delete the folder. The system command calling is only impelemented for linux OS. For Windows and the other kind of OS it will be ignored, and if the JVM fails to delete the folder, some errors may happen.
Apart from these minor issues, everything looks okay. I also tested the case where the screenshot tool has been disabled, and I verified that the collection directory is being removed (once the purgeDigitalAssetsTrigger.repeatInterval has elapsed) after a harvest has been rejected or archived.
@hannakoppelaar I've made some changes to this PR
Implemented the individual collection feature for PYWB:
harvestResourceUrlMapper.urlMap=http://localhost:8090/{$HarvestResult.Collection}/