search for: routestr

Displaying 1 result from an estimated 1 matches for "routestr".

Did you mean: router
2011 Jul 19
1
list.files recursively to find files in a specific way...
...-------------------file2.txt ---------------B -----------------------file1.txt -----------------------file2.txt I'd love to list all file2.txt from all subdirectories "B"s but not from "A"s, how to do that? I tried the following two a) allResults <- list.files(path = routeStr, pattern = "file2.txt", all.files = TRUE, full.names = TRUE, recursive = TRUE); gives me 200 files in allResults, which is wrong. There should be only 100 files in allResults. b) allResults <- list.files(path = routeStr, pattern = "B/file2.txt", all.files = TRUE, full.names...