We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b7a7a0 commit 7df1312Copy full SHA for 7df1312
1 file changed
src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java
@@ -179,7 +179,7 @@ public static String getFileHeaderMagicNumber(byte[] fileContents)
179
public static File autoAppendFileExtension(String extension, File file)
180
{
181
if (!file.getName().endsWith(extension))
182
- file = new File(file.getName() + extension);
+ file = new File(file.getAbsolutePath() + extension);
183
184
return file;
185
}
0 commit comments