#NEWLINE# def collect_info( path_list ) : #NEWLINE# #INDENT# '\n    Recursive collect dirs and files in path_list directory.\n\n    :param path_list: start directory for collecting\n    :return files_list, dir_list: tuple of included\n    directories and files\n    ' #NEWLINE# files_list = [ ] #NEWLINE# dir_list = [ ] #NEWLINE# for path in path_list : #NEWLINE# #INDENT# temp_files_list = [ ] #NEWLINE# temp_dir_list = [ ] #NEWLINE# for ( root , dirs , files ) in os . walk ( path ) : #NEWLINE# #INDENT# temp_files_list += files #NEWLINE# temp_dir_list += dirs #NEWLINE# #UNINDENT# files_list . append ( temp_files_list ) #NEWLINE# dir_list . append ( temp_dir_list ) #NEWLINE# #UNINDENT# return ( files_list , dir_list )