lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6914] - Problem creating directories for FSDirectory
Date Tue, 12 Mar 2002 04:49:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6914>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6914

Problem creating directories for FSDirectory





------- Additional Comments From drag0n2@yahoo.com  2002-03-12 04:49 -------
Well, we should definatelly not keep the current code. It should either read.

    if  (!directory.exists())
        throw new IOException("Directory " + directory + " does not exist");
   
OR
if  (!directory.exists())
     if ( !directory.mkdirs() )
        throw new IOException("Cannot create directory " + directory);

I vote for #2, only because its closer to the current behaivor of the code, users that 
expect at least one directory to be created for them will have to change their code...

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message