code: def move_old_profile(self, locale_minimum_needs_dir):
          
          old_profile_path = os.path.join(
              QgsApplication.qgisSettingsDirPath(), 'minimum_needs')
  
          if os.path.exists(old_profile_path):
              for filename in os.listdir(old_profile_path):
                  source_file = os.path.join(old_profile_path, filename)
                  destination_file = os.path.join(
                      locale_minimum_needs_dir, filename)
                  if not os.path.exists(destination_file):
                      copy(source_file, destination_file)
                  if os.path.exists(destination_file):
                      os.remove(source_file)
              # remove old profile path
              rmtree(old_profile_path)
docs: Move old minimum needs profile under user profile/minimum_needs.
             This function is to get rid the old min needs profile came
             from InaSAFE < 4.0.
  
          :param locale_minimum_needs_dir: User local minimum needs profile path.
          :type locale_minimum_needs_dir: str