Give this a shot:
Dir.foreach("/path/to/your/dir") { |file|
puts file
}
solved Display content of directory Ruby [duplicate]
Give this a shot:
Dir.foreach("/path/to/your/dir") { |file|
puts file
}
solved Display content of directory Ruby [duplicate]