def _update_asset_content_filename_on_disk_to_match_id(self, ac):
def has_secondary_storage():<EOL><INDENT>return '<STR_LIT>' in self._config_map<EOL><DEDENT>datastore_path = '<STR_LIT>'<EOL>secondary_data_store_path = '<STR_LIT>'<EOL>if '<STR_LIT>' in self._config_map:<EOL><INDENT>datastore_path = self._config_map['<STR_LIT>']<EOL><DEDENT>if has_secondary_storage():<EOL><INDENT>secondary_data_store_path = self._config_map['<STR_LIT>']<EOL><DEDENT>relative_path = self._config_map['<STR_LIT>']<EOL>filepath = os.path.join(datastore_path, ac._my_map['<STR_LIT:url>'])<EOL>old_filename = os.path.splitext(os.path.basename(filepath))[<NUM_LIT:0>]<EOL>new_path = filepath.replace(old_filename, ac.ident.identifier)<EOL>os.rename(filepath, new_path)<EOL>if has_secondary_storage():<EOL><INDENT>old_path = '<STR_LIT>'.format(relative_path)<EOL>filepath = os.path.join(datastore_path, ac._my_map['<STR_LIT:url>']).replace(old_path, secondary_data_store_path)<EOL>old_filename = os.path.splitext(os.path.basename(filepath))[<NUM_LIT:0>]<EOL>new_path = filepath.replace(old_filename, ac.ident.identifier)<EOL>os.rename(filepath, new_path)<EOL><DEDENT>
Because we want the asset content filename to match the ac.ident,
        here we manipulate the saved file on disk after creating the
        asset content