#NEWLINE# def find_all( self , storage , dir = '' ) : #NEWLINE# #INDENT# '\n        Find all files in the specified directory, recursively.\n\n        ' #NEWLINE# all_dirs = set ( ) #NEWLINE# all_files = set ( ) #NEWLINE# with patched_settings ( STATICBUILDER_COLLECT_BUILT = True ) : #NEWLINE# #INDENT# ( dirs , files ) = storage . listdir ( dir ) #NEWLINE# all_dirs . update ( ( os . path . join ( dir , d ) for d in dirs ) ) #NEWLINE# all_files . update ( ( os . path . join ( dir , f ) for f in files ) ) #NEWLINE# for d in dirs : #NEWLINE# #INDENT# ( nested_dirs , nested_files ) = self . find_all ( storage , os . path . join ( dir , d ) ) #NEWLINE# all_dirs . update ( nested_dirs ) #NEWLINE# all_files . update ( nested_files ) #NEWLINE# #UNINDENT# #UNINDENT# return ( all_dirs , all_files )