method

compare_file

Importance_1
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('/dev/null', '/dev/urandom')  #=> false
Show source
Register or log in to add new notes.