Applied, hvala.

Otis

--- Mladen Turk <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> Current FSDirectory uses mkdir() to create the index directory.
> This patch uses mkdirs() allowing to create a 'deeper' structure like
> '/opt/lucene/indexes/webindex',  etc...
> 
> 
> 
> RCS file:
>
/home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/store/FSDirectory.
> java,v
> retrieving revision 1.21
> diff -u -r1.21 FSDirectory.java
> --- FSDirectory.java  25 Sep 2003 21:50:11 -0000      1.21
> +++ FSDirectory.java  30 Jan 2004 09:19:57 -0000
> @@ -156,7 +156,7 @@
>  
>    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
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to