Skip to content

Commit

Permalink
Fix FileNotFoundException thrown on workspace startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Arciuchiewicz committed Aug 31, 2018
1 parent ea85696 commit 9097113
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -179,10 +179,15 @@ public boolean accept( File dir, String name )
File entryFile = new File( dbDir, entry.getName() );
if ( entry.isDirectory() )
{
entryFile.mkdir();
entryFile.mkdirs();
}
else
{
File parent = entryFile.getParentFile();
if (parent != null)
{
parent.mkdirs();
}
// Copy zip entry to local file
OutputStream os = new FileOutputStream( entryFile );
byte[] buf = new byte[4000];
Expand Down

0 comments on commit 9097113

Please sign in to comment.