mirror of https://github.com/apache/lucene.git
- Applied a fix for bug 6914.
PR: Obtained from: Submitted by: Eugene Gluzberg Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149713 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
27017fae14
commit
02bc68cb60
|
@ -134,7 +134,8 @@ final public class FSDirectory extends Directory {
|
|||
|
||||
private synchronized void create() throws IOException {
|
||||
if (!directory.exists())
|
||||
directory.mkdir();
|
||||
if (!directory.mkdir())
|
||||
throw new IOException("Cannot create directory: " + directory);
|
||||
|
||||
String[] files = directory.list(); // clear old files
|
||||
for (int i = 0; i < files.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue