mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +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 {
|
try {
|
||||||
InputStream in = urlConnection.getInputStream();
|
InputStream in = urlConnection.getInputStream();
|
||||||
File f = new File(filename);
|
File f = new File(filename);
|
||||||
if (!f.exists()) {
|
if (!f.exists() && f.getParentFile() != null) {
|
||||||
f.getParentFile().mkdirs();
|
f.getParentFile().mkdirs();
|
||||||
System.out.println("Directories have been created: " + f.getParentFile().getPath());
|
System.out.println("Directories have been created: " + f.getParentFile().getPath());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue