R
Rajarshi Chakravarty
Hi,
How can I get an array of all legitimate sub directories in the current
directory?
path = "D:/Traffic"
Dir.chdir(path)
This gives 2 extra entries "." and ".."
Dir.open(stationDir).entries.reject{|f| File.file?(f)}
Please help
How can I get an array of all legitimate sub directories in the current
directory?
path = "D:/Traffic"
Dir.chdir(path)
This gives 2 extra entries "." and ".."
Dir.open(stationDir).entries.reject{|f| File.file?(f)}
Please help