DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31747>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31747 [PATCH] FSDirectory create() method deletes all files Summary: [PATCH] FSDirectory create() method deletes all files Product: Lucene Version: CVS Nightly - Specify date in submission Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Store AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] hi all, the current implementation of FSDirectory.create(...) silently deletes all files (even empty directories) within the index directory when setting up a new index with create option enabled. Lucene doesn't care when deleting files in the index directory if they belong to lucene or not. I don't think that this is a real bug, but it can be a pain if somebody whants to store some private information in the lucene index directory, e.g some configuration files. Therefore i implemented a FileFilter which knows about the internal lucene file extensions, so that all other files would never get touched when creating a new index. The current patch is an enhancement in FSDirectory only. I don't think that there is a need to make it available in the Directory class and change all it's depending classes. regards Bernhard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]