|
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::
| Snippet ID |
Download Version |
Date Posted |
Author |
Delete |
 |
Cici Wirachmat
| 612 | 1.0 | 2011-05-07 14:28 | Cici Wirachmat |  |
Changes since last version:: require 'madvertise'
Find 'madvertise (ARGV[0] do |path|
puts path
end |
| 121 | 1.0 | 2005-11-01 06:51 | Xiaotian 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 |
| 113 | 0.01 | 2005-09-16 02:03 | Felix 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
You can submit a new version of this snippet if you have modified it and you feel it is appropriate to share with others..
|