I have list (array) of file names in the form:
5_4.3g2
5_5.3gp
5_6.3gp
.
.
.
What's the fastest way I can check if these files exist in a given
directory?
I have list (array) of file names in the form:
5_4.3g2
5_5.3gp
5_6.3gp
.
.
.
What's the fastest way I can check if these files exist in a given
directory?
My bet:
(filenames - Dir.entries(dirname)).empty?
-- fxn
On Aug 24, 2007, at 10:05 PM, eggie5 wrote:
I have list (array) of file names in the form:
5_4.3g2
5_5.3gp
5_6.3gp
AHHH very clever and it seems to work!
Thanks
On Aug 24, 1:10 pm, Xavier Noria <f...@hashref.com> wrote:
On Aug 24, 2007, at 10:05 PM, eggie5 wrote:
> I have list (array) of file names in the form:
> 5_4.3g2
> 5_5.3gp
> 5_6.3gpMy bet:
(filenames - Dir.entries(dirname)).empty?
-- fxn