[Rd] should dir(all=TRUE) return . and ..?

2011-09-23 Thread William Dunlap
dir(all=TRUE) returns the file names . and .. while dir(recursive=TRUE, all=TRUE, include.dirs=TRUE) does not. I always filter out the . and .. entries and was wondering if anyone would mind if dir(all=TRUE) just omitted them? It might make recursive file operations like cleaning out a directory

Re: [Rd] should dir(all=TRUE) return . and ..?

2011-09-23 Thread Martin Maechler
William Dunlap wdun...@tibco.com on Fri, 23 Sep 2011 15:49:43 + writes: dir(all=TRUE) returns the file names . and .. while dir(recursive=TRUE, all=TRUE, include.dirs=TRUE) does not. I always filter out the . and .. entries and was wondering if anyone would mind if

Re: [Rd] should dir(all=TRUE) return . and ..?

2011-09-23 Thread Prof Brian Ripley
On Fri, 23 Sep 2011, Martin Maechler wrote: William Dunlap wdun...@tibco.com on Fri, 23 Sep 2011 15:49:43 + writes: dir(all=TRUE) returns the file names . and .. while dir(recursive=TRUE, all=TRUE, include.dirs=TRUE) does not. I always filter out the . and .. entries and