[FileMap] Input sanity check.