[ 
https://issues.apache.org/jira/browse/LUCENE-7366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15356997#comment-15356997
 ] 

Uwe Schindler edited comment on LUCENE-7366 at 6/30/16 12:22 PM:
-----------------------------------------------------------------

So I would suggest to just remove the check (or only do it is instanceof 
FSDirectory). If somebody has subdirs in an FSDirectory, the copy ctor will 
just fail - as this is brokenness anyways.


was (Author: thetaphi):
So I would suggest to just remove the check (or only do it is instanceof 
FSDirectory). If somebody has subdirs in an FSDirectory, the copy ctor will 
just fail.

> Allow RAMDirectory to copy any Directory 
> -----------------------------------------
>
>                 Key: LUCENE-7366
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7366
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Rob Audenaerde
>
> Uwe: "The FSDirectory passed to RAMDirectory in the ctor could be changed to 
> Directory easily. The additional check for "not is a directory inode" is in 
> my opinion lo longer needed, because listFiles should only return files."
> Use case: For increasing the speed of some of my application tests, I want to 
> re-use/copy a pre-populated RAMDirectory over and over. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to