2010/8/26 Rajarshi Chakravarty <raj_plays / yahoo.com>:
> In continuation with my questions about reading files from the file
> system...
>
> It seems Dir[File.join(root, subDir, "*")] gives the full path name of
> all files in the sub directory
>
> Can I modify the expression to give just the basename?

You can feed the result through #map and File.basename.

Cheers

robert


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/