I am trying to search for all files of a given type in a given folder and copy them to a new folder.
I need to specify a root folder and search through that folder a
Another fast way of doing this is delegating the task to the shell command "find" and splitting the output:
pdf_file_paths = `find #{dir} -name "*.pdf"`.split("\n")
Does not work on Windows.