W
wes.monk
Dir.foreach("c:/wes/photos/Bike/*.JPG") {|x| puts "Got#{x}" }
This does not seem to work on my windows xp machine? Should it? I am
trying to get a list of files with the .JPG extension.
If I take the *.JPG out, I get a list of all of the files in that
directory? What am I doing wrong? I just want the .JPG's.
Thanks in advance,
wes
This does not seem to work on my windows xp machine? Should it? I am
trying to get a list of files with the .JPG extension.
If I take the *.JPG out, I get a list of all of the files in that
directory? What am I doing wrong? I just want the .JPG's.
Thanks in advance,
wes