def get_all_path(root_dir):
path_list = []
all_list = os.listdir(root_dir)
for i in range(0, len(all_list)):
com_path = os.path.join(root_dir, all_list[i])
if os.path.isfile(com_path):
path_list.append(com_path)
if os.path.isdir(com_path):
path_list.extend(get_all_path(com_path))
return path_list