mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
ImageFetcher: Better handling if Image can't be saved as jpg
This commit is contained in:
committed by
Michael Kamensky
parent
c31198eaea
commit
5cf1f47047
@@ -163,6 +163,10 @@ public final class ImageKeys {
|
||||
for (String ext : FILE_EXTENSIONS) {
|
||||
File file = new File(dir, filename + ext);
|
||||
if (file.exists()) {
|
||||
if (file.isDirectory()) {
|
||||
file.delete();
|
||||
continue;
|
||||
}
|
||||
return file;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user