FWIW, as far as I can tell, Sys.readlink() still doesn't handle symlinks (or junction points) on Windows. Were you thinking of normalizePath()? That does now resolve both symlinks and junction points on Windows (courtesy of a lot of work from Tomas), although I don't recall the exact versions in which support was introduced. But that would still give you a more efficient way of detecting such files on Windows.
Kevin On Sat, Feb 17, 2024 at 3:21 AM Stefan Mayer <stefan.ma...@uni-tuebingen.de> wrote: > > > > On 17. Feb 2024, at 09:16, Henrik Bengtsson <henrik.bengts...@gmail.com> > > wrote: > > > > I can confirm that this has to fixed in R.utils. This gist is that > > R.utils does lots of validation of read/write permissions, and deep > > down it rely on system("dir") as a fallback method. If this is down > > toward dirname(tempdir()), then it'll find a lot of files, e.g. > > > > […] > > > > So, yeah, wow! I'll look into fixing this, probably by removing this > > fallback approach, which is very rarely needed; it was added way back > > when Sys.readlink() didn't cover all cases. > > Thanks for looking into this, Henrik! Feel free to let me know if I can help > with anything. > > - Stefan > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel