mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/fileutils.rb (cmp): return false if file size differs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2672d0cc28
commit
4a1c7e5f6d
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Dec 29 05:08:13 2002 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/fileutils.rb (cmp): return false if file size differs.
|
||||
|
||||
Sat Dec 28 19:21:24 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* instruby.rb: remove junk args.
|
||||
|
|
|
@ -564,7 +564,7 @@ module FileUtils
|
|||
sa = sb = nil
|
||||
st = File.stat(filea)
|
||||
bsize = fu_blksize(st.blksize)
|
||||
return true unless File.size(fileb) == st.size
|
||||
return false unless File.size(fileb) == st.size
|
||||
|
||||
File.open(filea, 'rb') {|a|
|
||||
File.open(fileb, 'rb') {|b|
|
||||
|
|
Loading…
Add table
Reference in a new issue