### 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
err = ResourceSaver::save(res, new_path, ResourceSaver::FLAG_COMPRESS);
				if (err != OK) {
					EditorNode::get_singleton()->add_io_error(TTR("Error duplicating:") + " " + vformat(TTR("Failed to save resource at %s: %s"), new_path, error_names[err]));
				}
			} else if (err != OK) {
				
				
				EditorNode::get_singleton()->add_io_error(TTR("Error duplicating:") + " " + vformat(TTR("Failed to load resource at %s: %s"), new_path, error_names[err]));
			}
		}
	} else {
		
		Ref<DirAccess> old_dir = DirAccess::open(old_path);
		Ref<FileAccess> file_access = FileAccess::create(FileAccess::ACCESS_RESOURCES);
		old_dir->set_include_navigational(false);
		old_dir->list_dir_begin();
		for (String f = old_dir->_get_next(); !f.is_empty(); f = old_dir->_get_next()) {
			if (f.get_extension() == "import") {
				continue;
			}
			if (file_access->file_exists(old_path + f)) {
				_try_duplicate_item(FileOrFolder(old_path + f, true), new_path + f);
			} else if (da->dir_exists(old_path + f)) {
				_try_duplicate_item(FileOrFolder(old_path + f, false), new_path + f);
			}
		}
		old_dir->list_dir_end();
	}
}
void FileSystemDock::_update_resource_paths_after_move(const HashMap<String, String> &p_renames) const {