#NEWLINE# @ staticmethod #NEWLINE# def WalkFileTree( pattern , root = _SRC_DATA_DIR ) : #NEWLINE# #INDENT# 'Walk the source file tree and return file paths matching the pattern.\n\n    Args:\n      pattern: (str) A regex for a file pattern.\n      root: (str) root of search tree.\n    Yields:\n      (str) list of path names\n    ' #NEWLINE# matcher = re . compile ( pattern ) #NEWLINE# for ( root , unused_dirs , file_names ) in os . walk ( root ) : #NEWLINE# #INDENT# for file_name in file_names : #NEWLINE# #INDENT# if matcher . match ( file_name ) : #NEWLINE# #INDENT# ( yield os . path . join ( root , file_name ) )