mirror of https://github.com/apache/lucene.git
- Applied a small patch from Mladen Turk
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150183 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b918871d54
commit
5b90be88b7
|
@ -156,7 +156,7 @@ public final class FSDirectory extends Directory {
|
||||||
|
|
||||||
private synchronized void create() throws IOException {
|
private synchronized void create() throws IOException {
|
||||||
if (!directory.exists())
|
if (!directory.exists())
|
||||||
if (!directory.mkdir())
|
if (!directory.mkdirs())
|
||||||
throw new IOException("Cannot create directory: " + directory);
|
throw new IOException("Cannot create directory: " + directory);
|
||||||
|
|
||||||
String[] files = directory.list(); // clear old files
|
String[] files = directory.list(); // clear old files
|
||||||
|
|
Loading…
Reference in New Issue