Make scanner more robust
The first run is the more problematic, because, if something fails before saving the json files, the scanner run must be repeated completely.
A solution could be that of saving the json files after every directory scan, or after n directories scanned, or every n minutes, so that something of the work which was done is saved.
Edited by Paolo Benvenuto