[R] list.dirs() full.names broken?

2012-04-13 Thread J Toll
Hi, I am trying to list all the sub-directories in a particular directory and having a few issues. list.dirs seems to be slightly broken and/or poorly labelled. My issue appears to be the same as this one, from the archives: http://tolstoy.newcastle.edu.au/R/e16/help/11/11/1156.html Here is

Re: [R] list.dirs() full.names broken?

2012-04-13 Thread J Toll
OK, well list.dirs() seems broken to me. In case someone else needs a working version, I wrote a new function called lsdir(). It adds the ability to choose whether to include hidden directories. It should work on Mac and probably Linux/Unix. lsdir - function(path, format = relative, recursive