diff src/goodjava/lucene/logging/LoggingIndexWriter.java @ 1501:e66e3d50b289

mkdirs
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 10 May 2020 22:28:13 -0600
parents 22e15cf73040
children 8a7b6b32c691
line wrap: on
line diff
--- a/src/goodjava/lucene/logging/LoggingIndexWriter.java	Sun May 10 13:06:11 2020 -0600
+++ b/src/goodjava/lucene/logging/LoggingIndexWriter.java	Sun May 10 22:28:13 2020 -0600
@@ -54,7 +54,7 @@
 	public LoggingIndexWriter(LuceneIndexWriter indexWriter,File logDir) throws IOException {
 		this.indexWriter = indexWriter;
 		this.logDir = logDir;
-		logDir.mkdirs();
+		IoUtils.mkdirs(logDir);
 		if( !logDir.isDirectory() )
 			throw new RuntimeException();
 		index = new File(logDir,"index");