lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Tucker" <m...@jivesoftware.com>
Subject RE: FSDirectory patch for file renaming
Date Tue, 18 Feb 2003 21:59:24 GMT

> Yes... it's one of those things... in any case... as far as renaming 
> goes... the easiest hack is to simply call delete() on the 
> (non-existent) destination file before a rename... this seems 
> to flush 
> something, somewhere... something along the line of:
> 
> aDestinationFile.delete();
> 
> aSourceFile.renameTo( aDestinationFile );

I believe that's the current logic used by FSDirectory, and it still
breaks.

Regards,
Matt


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


Mime
View raw message