From dmurdoch at pair.com  Fri Jul 16 20:47:44 2004
From: dmurdoch at pair.com (dmurdoch@pair.com)
Date: Fri Jul 16 20:47:46 2004
Subject: [Rd] (PR#7100) and #7102: list.files fails with all.files = TRUE
Message-ID: <20040716184744.B4DF7108BB@slim.kubism.ku.dk>

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


[Rd] (PR#7100) and #7102: list.files fails with all.files = TRUE
dmurdoch@pair.com