diff src/goodjava/lucene/backup/BackupIndexWriter.java @ 1501:e66e3d50b289

mkdirs
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 10 May 2020 22:28:13 -0600
parents f01abd6d5858
children 8a7b6b32c691
line wrap: on
line diff
--- a/src/goodjava/lucene/backup/BackupIndexWriter.java	Sun May 10 13:06:11 2020 -0600
+++ b/src/goodjava/lucene/backup/BackupIndexWriter.java	Sun May 10 22:28:13 2020 -0600
@@ -37,7 +37,7 @@
 		this.name = name;
 		File f = new File(System.getProperty("java.io.tmpdir"));
 		dir = new File(f,"goodjava.lucene/"+name);
-		dir.mkdirs();
+		IoUtils.mkdirs(dir);
 	}
 
 	public synchronized void commit() throws IOException {