I want to do the equivalent of ls
in R
.
Say I want ls /a/b/c/201*/*/d/e/f/*/sameNameFile.gz
, this command take 5 seconds to run on a terminal, I tried to use list.files
but it takes a path
argument and need recursive=TRUE
. It is taking ages...
Is there a function I could use (or an option to list.files
) that would allow me to run this ls
command (I know I can run the comamnd itself with system(cmd,intern=TRUE)
but I want a R solution)