def iter_platform_files(dst):
 for (root, dirs, files) in os.walk(dst):
  for fn in files:
   fn = os.path.join(root, fn)
   if is_platform_file(fn):
    (yield fn)

def iter_platform_files ( dst ) : for ( root , dirs , files ) in os . walk ( dst ) : for fn in files : fn = os . path . join ( root , fn ) if is_platform_file ( fn ) : ( yield fn )
walk a directory and yield each full path that is a mach-o file .