method
compare_file
v2_5_5 -
Show latest stable
- Class:
FileUtils
compare_file(a, b)private
Returns true if the contents of a file a and a file b are identical.
FileUtils.compare_file('somefile', 'somefile') #=> true FileUtils.compare_file('/dev/null', '/dev/urandom') #=> false