code: def case_insensitive_rename(src, dst):
      
      temp_dir = tempfile.mkdtemp()
      shutil.rmtree(temp_dir)
      shutil.move(src, temp_dir)
      shutil.move(temp_dir, dst)
docs: A hack to allow us to rename paths in a case-insensitive filesystem like HFS.