method
fu_same?
v1_8_7_330 -
Show latest stable
- Class:
FileUtils
fu_same?(a, b)private
No documentation available.
# File lib/fileutils.rb, line 1419
def fu_same?(a, b) #:nodoc:
if fu_have_st_ino?
st1 = File.stat(a)
st2 = File.stat(b)
st1.dev == st2.dev and st1.ino == st2.ino
else
File.expand_path(a) == File.expand_path(b)
end
rescue Errno::ENOENT
return false
end