BTW the Windows directory stream in NIO passes the file meta attributes from FindNextFile, it does not have to open/stat the files. Maybe this is the reason why it does Not need to resolve them (and it’s generally more efficient than using traditional Files.list).
-- http://bernd.eckenfels.net ________________________________ Von: Gary Gregory <garydgreg...@gmail.com> Gesendet: Friday, November 19, 2021 6:29:25 PM An: Commons Users List <user@commons.apache.org> Betreff: Re: [io] FileUtils.listFiles activates forces OneDrive files to download? 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 > >