More like:

            final AccumulatorPathVisitor visitor =
FileUtils.listAccumulate(directory,
FileFileFilter.INSTANCE.and(fileFilter), dirFilter,
PathUtils.EMPTY_FILE_VISIT_OPTION_ARRAY);
            return
visitor.getFileList().stream().map(Path::toFile).collect(Collectors.toList());

Gary

On Fri, Nov 19, 2021 at 12:33 PM Gary Gregory <garydgreg...@gmail.com>
wrote:

> Like this:
>
>             final AccumulatorPathVisitor visitor =
> listAccumulate(directory, FileFileFilter.INSTANCE.and(fileFilter),
> dirFilter, PathUtils.EMPTY_FILE_VISIT_OPTION_ARRAY);
>             return
> visitor.getFileList().stream().map(Path::toFile).collect(Collectors.toList());
>
> Gary
>
> On Fri, Nov 19, 2021 at 12:29 PM Gary Gregory <garydgreg...@gmail.com>
> wrote:
>
>> If this is considered a kind of symbolic link, then you could try
>> passing java.nio.file.LinkOption.NOFOLLOW_LINKS to one of the Commons IO
>> APIs.
>>
>> Gary
>>
>> On Fri, Nov 19, 2021 at 10:49 AM Rod Widdowson <r...@steadingsoftware.com>
>> wrote:
>>
>>> > It sounds like it is up to OneDrive to do what it pleases when you ask
>>> it
>>> > for a file reference...
>>>
>>> FWIW and technically you need to send FILE_FLAG_OPEN_NO_RECALL at the
>>> Win32 level.  But I am not sure that helps anyone.
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
>>> For additional commands, e-mail: user-h...@commons.apache.org
>>>
>>>

Reply via email to