def _update_config(self,directory,filename):
basefilename=os.path.splitext(filename)[<NUM_LIT:0>]<EOL>ext=os.path.splitext(filename)[<NUM_LIT:1>].lower()<EOL>if filename==LOCATION_FILE:<EOL><INDENT>print(("<STR_LIT>"%(LOCATION_FILE)))<EOL>return self._update_config_location(directory)<EOL><DEDENT>elif filename==TAG_FILE:<EOL><INDENT>print(("<STR_LIT>"%(TAG_FILE)))<EOL>return self._update_config_tags(directory)<EOL><DEDENT>elif filename==SET_FILE:<EOL><INDENT>print(("<STR_LIT>"%(SET_FILE)))<EOL>return self._update_config_sets(directory)<EOL><DEDENT>elif filename==MEGAPIXEL_FILE:<EOL><INDENT>print(("<STR_LIT>"%(MEGAPIXEL_FILE)))<EOL>return self._upload_media(directory,resize_request=True)<EOL><DEDENT>elif ext in self.FLICKR_META_EXTENSIONS:<EOL><INDENT>return self._update_meta(directory,basefilename)<EOL><DEDENT>return False<EOL>
Manages FLICKR config files