- 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:
Otis Gospodnetic 2004-01-30 16:36:10 +00:00
parent b918871d54
commit 5b90be88b7
1 changed files with 1 additions and 1 deletions

View File

@ -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