check if files are the same in directories