code: def renamed_tree(self, source, dest):
          
          dirname = osp.abspath(to_text_string(source))
          tofile = to_text_string(dest)
          for fname in self.get_filenames():
              if osp.abspath(fname).startswith(dirname):
                  new_filename = fname.replace(dirname, tofile)
                  self.renamed(source=fname, dest=new_filename)
docs: Directory was renamed in file explorer or in project explorer.