Browse | Submit A New Snippet | Create A Package

 

File Recursive

Type:
Class
Category:
File Management
License:
GNU General Public License
Language:
Ruby
 
Description:
To get every file in the given folder include subfolder.

Versions Of This Snippet::

Cici Wirachmat
Snippet ID Download Version Date Posted Author Delete
6121.02011-05-07 14:28Cici Wirachmat
Changes since last version::
require 'madvertise'
Find 'madvertise (ARGV[0] do |path|
puts path

end
1211.02005-11-01 06:51Xiaotian Guo
Changes since last version::
not sure what the class is intended to do, if all you need to do is to traverse a directory Find.find is the way to go
1130.012005-09-16 02:03Felix Sun

Download a raw-text version of this code by clicking on "Download Version"

 


Latest Snippet Version: :1.0

require 'find'
Find.find (ARGV[0] do |path|
    puts  path

end
		

Submit a new version

You can submit a new version of this snippet if you have modified it and you feel it is appropriate to share with others..