Re: [R] Finding files matching full path regex

2014-02-27 Thread Duncan Murdoch
On 27/02/2014 7:10 AM, Alexander Shenkin wrote: Hi folks, I'm interested in finding files by matching both filenames and directories via regex. If I have: dir1_pat1/file1.csv dir2_pat1/file2.csv dir2_pat1/file3.txt dir3_pat2/file4.csv I would like to find, for example, all

[R] Finding files matching full path regex

2014-02-27 Thread Alexander Shenkin
Hi folks, I'm interested in finding files by matching both filenames and directories via regex. If I have: dir1_pat1/file1.csv dir2_pat1/file2.csv dir2_pat1/file3.txt dir3_pat2/file4.csv I would like to find, for example, all csv files in directories that have "pat1" in their