- 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:
Otis Gospodnetic 2002-03-15 05:52:57 +00:00
parent 27017fae14
commit 02bc68cb60
1 changed files with 2 additions and 1 deletions

View File

@ -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++) {