[ https://issues.apache.org/jira/browse/LUCENE-780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466522 ]
Michael McCandless commented on LUCENE-780: ------------------------------------------- I agree, moving this up to Directory from RAMDirectory makes sense. The patch applies cleanly and all tests pass. I will make a small change to do the is.close/os.close in a "finally" clause, and then I'll commit it. Thanks Jiri! > Generalize directory copy operation > ----------------------------------- > > Key: LUCENE-780 > URL: https://issues.apache.org/jira/browse/LUCENE-780 > Project: Lucene - Java > Issue Type: Improvement > Components: Store > Reporter: Jiri Kuhn > Priority: Minor > Attachments: DirectoryCopy.patch > > > The copy operation in RAMDirectory(Directory) constructor can be used more > generally to copy one directory to another. Why bound it only to > RAMDirectory?. For example, I build index in RAMDirectory but I need it to > persist in FSDirectory. I created a patch to solve it. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]