mirror of
https://github.com/apache/lucene.git
synced 2025-03-01 05:49:33 +00:00
- 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…
x
Reference in New Issue
Block a user