def _list_mock_games(path):
 files = os.listdir(path)
 return (os.path.join(path, f) for f in files if _is_sgf(f))

def _list_mock_games ( path ) : files = os . listdir ( path ) return ( os . path . join ( path , f ) for f in files if _is_sgf ( f ) )
helper function to get all sgf files in a directory .