Hi,

Consider the below file system:


                           C:\
                           |
        --------------------------------------------------
        |                  |                |            |
     Test1               Test2            Test3        Test4
       |                   |                |            |
  ------------            c.txt           e.docx     -------------
  |          |                                       |            |
 a.pdf      b.pdf                                 m.txt          aa.pdf


Now I want to copy only regular files from the "C:\"  to "D:\document".

Can anyone help me here for the same?

-- 
Posted via http://www.ruby-forum.com/.