diff --git a/src/java/org/apache/lucene/store/FSDirectory.java b/src/java/org/apache/lucene/store/FSDirectory.java index 22587f701b9..6c1546546bc 100644 --- a/src/java/org/apache/lucene/store/FSDirectory.java +++ b/src/java/org/apache/lucene/store/FSDirectory.java @@ -156,7 +156,7 @@ public final class FSDirectory extends Directory { private synchronized void create() throws IOException { if (!directory.exists()) - if (!directory.mkdir()) + if (!directory.mkdirs()) throw new IOException("Cannot create directory: " + directory); String[] files = directory.list(); // clear old files