text: import os
  from natsort import natsorted
  
  while True:
      path = input('PATH: ')
      name = input('Name: ')
  
      os.chdir(path)
  
      dir_files = os.listdir()
      my_files = []
  
      for file in dir_files:
          if file.startswith(name):
              my_files.append(file)
  
      print()
      for f in natsorted(my_files):
          print(f)
  
      print()
      print('O Programa a seguir modificará os arquivos acima')
      print(f'Preview: {name} 00.cbx')
  
      while True:
          res = input('Deseja prosseguir? ').strip().upper()[0]
  
          if res == "S":
  
              for index, cbx in enumerate(natsorted(my_files)):
                  print()
                  print(f'Index: {index} - File: {cbx}')
  
                  extension = os.path.splitext(f)[1]
  
                  print(f'File Extension: {extension}')
                  os.rename(cbx, f'{name} {index + 1:0>2}{extension}')
                  print(f'Renamed To: {name} {index + 1:0>2}{extension}')
          
              break
  
          elif res == "N":
              break
  
          else:
  
              print('Resposta inválida.')
              print('Finalilzando programa.')
  
      loop = input('Deseja renomear outro diretório? ').strip().upper()[0]
  
      if loop == "S":
          continue
  
      elif loop == "N":
          print('Programa Finalizado.')
          break
      
  