check if can read the file (permission)