method

compare_file

v1_9_3_392 - Show latest stable - Class: FileUtils
compare_file(a, b)
public

Returns true if the contents of a file A and a file B are identical.

FileUtils.compare_file('somefile', 'somefile')  #=> true
FileUtils.compare_file('/bin/cp', '/bin/mv')    #=> maybe false