Skip to content

Commit 558a820

Browse files
authored
The GetPath method of a File that does not exist was returning the path with the name and should only return the path (#1022)
Issue: 206531
1 parent 69e5a4a commit 558a820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/com/genexus/util/GXFileInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public GXFileInfo(File file, boolean isDirectory){
2828
this.isDirectory = isDirectory;
2929
}
3030
public String getPath(){
31-
if (fileSource.isFile()){
31+
if (fileSource.isFile() || !exists()){
3232
String absoluteName = getAbsolutePath();
3333
if (!absoluteName.equals(""))
3434
return new File(absoluteName).getParent();

0 commit comments

Comments
 (0)