Skip to content

Commit

Permalink
Fix for directory creation failing
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumBadger committed Dec 17, 2020
1 parent 0833ef3 commit f2de60e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions assets/changelog-alpha.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/Alpha 260 (2020-12-17)
Fix for directory creation failing

/Alpha 259 (2020-12-15)
Fix for using internal browser as image viewer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ public void onWriteFinished() throws IOException {

final File subdir = getSubdirForCacheFile(location, cacheFileId);

if(!subdir.mkdirs()) {
if(!subdir.exists() && !subdir.mkdirs()) {
throw new IOException("Failed to create dirs: " + subdir.getAbsolutePath());
}

Expand Down

0 comments on commit f2de60e

Please sign in to comment.