def collect_info(path_list):
 files_list = []
 dir_list = []
 for path in path_list:
  temp_files_list = []
  temp_dir_list = []
  for (root, dirs, files) in os.walk(path):
   temp_files_list += files
   temp_dir_list += dirs
  files_list.append(temp_files_list)
  dir_list.append(temp_dir_list)
 return (files_list, dir_list)

def collect_info ( path_list ) : files_list = [ ] dir_list = [ ] for path in path_list : temp_files_list = [ ] temp_dir_list = [ ] for ( root , dirs , files ) in os . walk ( path ) : temp_files_list += files temp_dir_list += dirs files_list . append ( temp_files_list ) dir_list . append ( temp_dir_list ) return ( files_list , dir_list )
recursive collect dirs and files in path_list directory .