diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index e1924c7994c..69717b2be39 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -1286,6 +1286,7 @@ void FileSystemDock::_try_duplicate_item(const FileOrFolder &p_item, const Strin EditorNode::get_singleton()->add_io_error(TTR("Cannot move a folder into itself.") + "\n" + old_path + "\n"); return; } + const_cast(this)->path = new_path; Ref da = DirAccess::create(DirAccess::ACCESS_RESOURCES);