comparison 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
comparison
equal deleted inserted replaced
1500:f01abd6d5858 1501:e66e3d50b289
35 if( backupDomains == null ) 35 if( backupDomains == null )
36 throw new RuntimeException("must set backupDomains"); 36 throw new RuntimeException("must set backupDomains");
37 this.name = name; 37 this.name = name;
38 File f = new File(System.getProperty("java.io.tmpdir")); 38 File f = new File(System.getProperty("java.io.tmpdir"));
39 dir = new File(f,"goodjava.lucene/"+name); 39 dir = new File(f,"goodjava.lucene/"+name);
40 dir.mkdirs(); 40 IoUtils.mkdirs(dir);
41 } 41 }
42 42
43 public synchronized void commit() throws IOException { 43 public synchronized void commit() throws IOException {
44 super.commit(); 44 super.commit();
45 //sync(); 45 //sync();