1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/find.rb (Find.find): removed already unnecessary code.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-12-14 00:20:56 +00:00
parent b3ea5a1789
commit cc744ef9b8
2 changed files with 5 additions and 7 deletions

View file

@ -1,3 +1,7 @@
Mon Dec 14 09:20:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/find.rb (Find.find): removed already unnecessary code.
Sun Dec 13 23:48:25 2009 Tanaka Akira <akr@fsij.org>
* lib/find.rb (Find.find): sort directory entries. [ruby-dev:39847]

View file

@ -50,13 +50,7 @@ module Find
fs.sort!
fs.reverse_each {|f|
next if f == "." or f == ".."
if File::ALT_SEPARATOR and file =~ /^(?:[\/\\]|[A-Za-z]:[\/\\]?)$/ then
f = file + f
elsif file == "/" then
f = "/" + f
else
f = File.join(file, f)
end
f = File.join(file, f)
paths.unshift f.untaint
}
end