You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2016/06/30 12:02:10 UTC

[jira] [Commented] (LUCENE-7366) Allow RAMDirectory to copy any Directory

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

Uwe Schindler commented on LUCENE-7366:
---------------------------------------

I think to fix this, we should first fix FSDirectory, to filter the returned filenames in listAll() to only show regular files. I had the impression we already fixed this. No other directory implementation allows o create directorys or lists them, only FSDirectory. So for consistency FSDirectory.listAll() should exclude non-regular files.

> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org