Checked in the logic of verifying the file state