Tracking the changes of 'dir'