Rebuild the file directory