### Godot version

4.1 dev3

### System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

### Issue description

Trying to move a folder results in moving error and it's not moved.
Regression from #75330

A fix already exists, but I'm opening an issue so it's not lost (the PR isn't ready and not very active).

### Steps to reproduce

1. Add 2 folders in filesystem
2. Move one folder into another one

### Minimal reproduction project

N/A
da->make_dir_recursive(new_path.get_base_dir());
		if (FileAccess::exists(old_path + ".import")) {
			Error err = da->copy(old_path, new_path);
			if (err != OK) {
				EditorNode::get_singleton()->add_io_error(TTR("Error duplicating:") + "\n" + old_path + ": " + error_names[err] + "\n");
				return;
			}
			
			Ref<ConfigFile> cfg;
			cfg.instantiate();
			cfg->load(old_path + ".import");
			cfg->erase_section_key("remap", "uid");
			err = cfg->save(new_path + ".import");
			if (err != OK) {
				EditorNode::get_singleton()->add_io_error(TTR("Error duplicating:") + "\n" + old_path + ".import: " + error_names[err] + "\n");
				return;
			}
		} else {
			
			if (ResourceLoader::get_resource_uid(old_path) == ResourceUID::INVALID_ID) {
				Error err = da->copy(old_path, new_path);
				if (err != OK) {
					EditorNode::get_singleton()->add_io_error(TTR("Error duplicating:") + "\n" + old_path + ": " + error_names[err] + "\n");
				}
				return;
			}
			
			Error err;
			Ref<Resource> res = ResourceLoader::load(old_path, "", ResourceFormatLoader::CACHE_MODE_REUSE, &err);
			if (err == OK && res.is_valid()) {