#NEWLINE# def _scan_up_all( path , target_name ) : #NEWLINE# #INDENT# 'Recursively scans up the entire path chain, finding all files with the\n  given name.\n\n  Args:\n    path: Directory to search.\n    target_name: Target file name to find.\n\n  Returns:\n    A list of full file paths for each file found. May be empty.\n  ' #NEWLINE# file_paths = [ ] #NEWLINE# while True : #NEWLINE# #INDENT# file_path = _scan_up ( path , target_name ) #NEWLINE# if ( not file_path ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# file_paths . append ( file_path ) #NEWLINE# path = os . path . dirname ( os . path . dirname ( file_path ) ) #NEWLINE# #UNINDENT# file_paths . reverse ( ) #NEWLINE# return file_paths