(directory)
yield all files beneath a directory.
yield all files beneath a directory.
yield all files beneath a directory .
def IterFiles(directory):
  """yield all files beneath a directory."""
  for root, unused_dirs, filenames in os.walk(directory):
    for f in filenames:
      yield os.path.join(root, f)
def IterFiles ( directory ) : for root , unused_dirs , filenames in os . walk ( directory ) : for f in filenames : yield os . path . join ( root , f )