From 080832c06fbc4a7e6c8fcc3ce7c88b6a68884cd2 Mon Sep 17 00:00:00 2001 From: iroqueta Date: Fri, 3 Oct 2025 17:31:02 -0300 Subject: [PATCH] The GetPath method of a File that does not exist was returning the path with the name and should only return the path Issue: 206531 --- common/src/main/java/com/genexus/util/GXFileInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/genexus/util/GXFileInfo.java b/common/src/main/java/com/genexus/util/GXFileInfo.java index bc2706525..03acc194a 100644 --- a/common/src/main/java/com/genexus/util/GXFileInfo.java +++ b/common/src/main/java/com/genexus/util/GXFileInfo.java @@ -28,7 +28,7 @@ public GXFileInfo(File file, boolean isDirectory){ this.isDirectory = isDirectory; } public String getPath(){ - if (fileSource.isFile()){ + if (fileSource.isFile() || !exists()){ String absoluteName = getAbsolutePath(); if (!absoluteName.equals("")) return new File(absoluteName).getParent();