mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
one more fix
This commit is contained in:
parent
3f502aedae
commit
41aae07021
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ public class FileHelper {
|
|||
try {
|
||||
InputStream in = urlConnection.getInputStream();
|
||||
File f = new File(filename);
|
||||
if (!f.exists()) {
|
||||
if (!f.exists() && f.getParentFile() != null) {
|
||||
f.getParentFile().mkdirs();
|
||||
System.out.println("Directories have been created: " + f.getParentFile().getPath());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue