From 324c50cf7a74e2a9a412c56185c2d2a3b02067f1 Mon Sep 17 00:00:00 2001 From: Fabio Zadrozny Date: Sun, 1 Sep 2024 10:35:34 -0300 Subject: [PATCH] In FolderStub, getFolder returns a handle, thus the resource doesn't need to exist. --- .../python/pydev/shared_core/resource_stubs/FolderStub.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/org.python.pydev.shared_core/src/org/python/pydev/shared_core/resource_stubs/FolderStub.java b/plugins/org.python.pydev.shared_core/src/org/python/pydev/shared_core/resource_stubs/FolderStub.java index 26c632be0e..1c881693e5 100644 --- a/plugins/org.python.pydev.shared_core/src/org/python/pydev/shared_core/resource_stubs/FolderStub.java +++ b/plugins/org.python.pydev.shared_core/src/org/python/pydev/shared_core/resource_stubs/FolderStub.java @@ -81,7 +81,9 @@ public IFolder getFolder(IPath path) { for (String s : segments) { f = new File(f, s); } - return new FolderStub(project, f); + // At this point it doesn't need to exist! + boolean mustExist = false; + return new FolderStub(project, null, f, mustExist); } @Override