This is dangerous. The __get_repomd_filetype_path has the potential to return None, so there should be a check instead of blindly concatenating it onto a dir path.

Also, use os.path.join instead of the concatenation here.