From: Arup Rakshit Date: 2013-01-31T00:47:25+09:00 Subject: Re: How to copy the directory files only to another directory? Joel Pearson wrote in post #1094392: > As above, > Dir.glob('**/*') See my code: C:\>irb irb(main):001:0> Dir.pwd => "C:/" <'C:/Documents and Settings/rakshiar/My Documents/userdata/Ruby') => 0 irb(main):003:0> Dir.pwd => "C:/Documents and Settings/rakshiar/My Documents/userdata/Ruby" irb(main):004:0> Dir.glob('**/*') => ["Books", "Books/Beginning Ruby.pdf", "Books/Russ Olsen Eloquent Ruby.pdf", " Books/Test.txt", "Books/testfile", "Scripts", "Scripts/downloadv3.rb", "Scripts/ FileNamerenaming.rb"] irb(main):005:0> Here I am also getting "Books","Scripts" - which are folder,but I don't want to copy them,rather their contents. -- Posted via http://www.ruby-forum.com/.