code: def _update_config(self,directory,filename):
          
          basefilename=os.path.splitext(filename)[0]
          ext=os.path.splitext(filename)[1].lower()
          if filename==LOCATION_FILE:
              print("%s - Updating geotag information"%(LOCATION_FILE))
              return self._update_config_location(directory)
          elif filename==TAG_FILE:
              print("%s - Updating tags"%(TAG_FILE))
              return self._update_config_tags(directory)
          elif filename==SET_FILE:
              print("%s - Updating sets"%(SET_FILE))
              return self._update_config_sets(directory)
          elif filename==MEGAPIXEL_FILE:
              print("%s - Updating photo size"%(MEGAPIXEL_FILE))
              return self._upload_media(directory,resize_request=True)
          elif ext in self.FLICKR_META_EXTENSIONS:
              return self._update_meta(directory,basefilename)
  
          return False
docs: Manages FLICKR config files