def get_filelist(htmlfile, dir, opts, log):
 log.info('Building file list...')
 filelist = traverse(htmlfile, max_levels=int(opts.max_levels), verbose=opts.verbose, encoding=opts.input_encoding)[(0 if opts.breadth_first else 1)]
 if opts.verbose:
  log.debug(' DCTB Found files...')
  for f in filelist:
   log.debug(' DCTB  DCTB ', f)
 return filelist

def get_filelist ( htmlfile , dir , opts , log ) : log . info ( 'Building file list...' ) filelist = traverse ( htmlfile , max_levels = int ( opts . max_levels ) , verbose = opts . verbose , encoding = opts . input_encoding ) [ ( 0 if opts . breadth_first else 1 ) ] if opts . verbose : log . debug ( ' DCTB Found files...' ) for f in filelist : log . debug ( ' DCTB  DCTB ' , f ) return filelist
build list of files referenced by html file or try to detect and use an opf file instead .