Martin DeMello
6/20/2008 6:54:00 PM
On Fri, Jun 20, 2008 at 11:30 AM, Justin To <tekmc@hotmail.com> wrote:
> File name: some_random_report.2008-06-20.csv
this should get you started
folder_name = "/path/to/folder"
reports = Dir["#{folder_name}/some_random_report*.csv"]
Dir[] uses file globbing, not regexp matching. If you want the latter,
try Dir["#{folder_name}/*.csv"].grep(/pattern/)
martin