method

compare_file

ruby latest stable - Class: Bundler::FileUtils

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

compare_file(a, b)
public

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

Bundler::FileUtils.compare_file('somefile', 'somefile')       #=> true
Bundler::FileUtils.compare_file('/dev/null', '/dev/urandom')  #=> false