M
Mmcolli00 Mom
Why is it that there are '.' and '..' in my output? I want to create a
list of all the files in this directory without showing the . and .. at
the top of the list. What do you do for this? Thanks, M
#snippet
myfolder = "c:/myfolder"
Dir.entries(myfolder).each do |filename|
puts filename
end
#end snippet
#Shows this as output
list of all the files in this directory without showing the . and .. at
the top of the list. What do you do for this? Thanks, M
#snippet
myfolder = "c:/myfolder"
Dir.entries(myfolder).each do |filename|
puts filename
end
#end snippet
#Shows this as output