method
compare_file
v1_9_1_378 -
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('/bin/cp', '/bin/mv') #=> maybe false