title: Trying to make a bulk translator with googleTrans module
body: <p>I’m using the googleTrans library to translate the names’ of a gigantic directory of files/folders and sub-folders that are written in Chinese.
  Initially, I used the library to translate the names’ of files/folders of a specific directory which worked perfectly. But when I wrote code to translate all the directories including the sub-directories, the library wasn’t working properly.
  Can you please help me out?
  Here's the code for the bulk_translator script:</p>
  <pre><code>import os
  from googletrans import Translator
  
  def list_files(dir):
      path = dir
      translator = Translator()
      for root, dirs, files in os.walk(path):
          for name in files:
              try:
                  # to translate it in English
                  out = (translator.translate(name, des=&quot;en&quot;)).text
                  my_source = path + name
                  out = path + out
                  # Try to make only unique ones
                  os.rename(my_source, out)
              except:
                  continue
  </code></pre>
  <p>list_files(&quot;C:/Users/pc/Desktop/some_chinese_stuff/New Folder0/&quot;)</p>
  <h2>Any help would be appreciated.
  Thank you!</h2>
  <p>Haris Iftikhar</p>