Re: [Rd] (PR#7100) and #7102: list.files fails with all.files = TRUE

From: <dmurdoch_at_pair.com>
Date: Sat 17 Jul 2004 - 04:47:44 EST


On Fri, 16 Jul 2004 19:23:21 +0200 (CEST), ligges@statistik.uni-dortmund.de wrote :

>rpeng@jhsph.edu wrote:
>
>> I get different behavior on Linux:
>>
>> system("mkdir newdir")
>> dir("newdir", all.files = TRUE, recursive = TRUE) ## R hangs
>
>The point is that all.files=TRUE implies returning also "." and ".."!
>Hence the recursion uses to be infinite (from "." to "." to "." ......).
>
>If recursiv = TRUE, the function should never look into "." and "..",
>except of the first step of the recursion.

I'll fix this in r-patched. It may be a few days before I'm able to commit the change, though.

Duncan Murdoch



R-devel@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel Received on Sat Jul 17 04:59:42 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:02 EST