def _remove_file(file_path):
 if (file_path.find('.vmdk') != (-1)):
  if (file_path not in _db_content.get('files')):
   raise vexc.FileNotFoundException(file_path)
  _db_content.get('files').remove(file_path)
 else:
  to_delete = set()
  for file in _db_content.get('files'):
   if (file.find(file_path) != (-1)):
    to_delete.add(file)
  for file in to_delete:
   _db_content.get('files').remove(file)

def _remove_file ( file_path ) : if ( file_path . find ( '.vmdk' ) != ( - 1 ) ) : if ( file_path not in _db_content . get ( 'files' ) ) : raise vexc . FileNotFoundException ( file_path ) _db_content . get ( 'files' ) . remove ( file_path ) else : to_delete = set ( ) for file in _db_content . get ( 'files' ) : if ( file . find ( file_path ) != ( - 1 ) ) : to_delete . add ( file ) for file in to_delete : _db_content . get ( 'files' ) . remove ( file )
removes a file reference from the db .