Skip to content

Commit

Permalink
#97: Check if .phasereditor data folder exists before create it.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhaserEditor2D committed Jan 16, 2019
1 parent 1d80325 commit 95d42e6
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -88,8 +88,10 @@ public static java.nio.file.Path getUserCacheFolder() {
}

try {

Files.createDirectories(_userFolderPath);

if (!Files.exists(_userFolderPath)) {
Files.createDirectories(_userFolderPath);
}

return _userFolderPath;
} catch (IOException e) {
Expand Down

0 comments on commit 95d42e6

Please sign in to comment.