check whether a map is a binary file