This commit is contained in:
Konloch 2022-02-13 16:00:21 -06:00
parent 7b7a7a06e5
commit 7df1312741
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ public class MiscUtils
public static File autoAppendFileExtension(String extension, File file) public static File autoAppendFileExtension(String extension, File file)
{ {
if (!file.getName().endsWith(extension)) if (!file.getName().endsWith(extension))
file = new File(file.getName() + extension); file = new File(file.getAbsolutePath() + extension);
return file; return file;
} }