mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ca13525d5d
commit
2549d8b2c6
1 changed files with 0 additions and 2 deletions
|
@ -9,11 +9,9 @@
|
||||||
|
|
||||||
module Find
|
module Find
|
||||||
def find(*path)
|
def find(*path)
|
||||||
p ["find", path]
|
|
||||||
while file = path.shift
|
while file = path.shift
|
||||||
catch(:prune) {
|
catch(:prune) {
|
||||||
yield file
|
yield file
|
||||||
p ["find", file]
|
|
||||||
if File.lstat(file).directory? then
|
if File.lstat(file).directory? then
|
||||||
d = Dir.open(file)
|
d = Dir.open(file)
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Add table
Reference in a new issue