Check last time modified and add option to rebuild catalog in getAllPaths()