Instead of removing everything and then re-adding things, can we just calculate the difference, unregister removed directories and register added directories? Especially since we already need to do these calculations for newPaths, anyway.