def real_scan_files(site, cache=None):
 task_fnames = set([])
 real_fnames = set([])
 output_folder = site.config['OUTPUT_FOLDER']
 for fname in _call_nikola_list(site, cache)[0]:
  fname = fname.strip()
  if fname.startswith(output_folder):
   task_fnames.add(fname)
 for (root, dirs, files) in os.walk(output_folder, followlinks=True):
  for src_name in files:
   fname = os.path.join(root, src_name)
   real_fnames.add(fname)
 only_on_output = list((real_fnames - task_fnames))
 only_on_input = list((task_fnames - real_fnames))
 return (only_on_output, only_on_input)

def real_scan_files ( site , cache = None ) : task_fnames = set ( [ ] ) real_fnames = set ( [ ] ) output_folder = site . config [ 'OUTPUT_FOLDER' ] for fname in _call_nikola_list ( site , cache ) [ 0 ] : fname = fname . strip ( ) if fname . startswith ( output_folder ) : task_fnames . add ( fname ) for ( root , dirs , files ) in os . walk ( output_folder , followlinks = True ) : for src_name in files : fname = os . path . join ( root , src_name ) real_fnames . add ( fname ) only_on_output = list ( ( real_fnames - task_fnames ) ) only_on_input = list ( ( task_fnames - real_fnames ) ) return ( only_on_output , only_on_input )
scan for files .