るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.139秒)
トップページ > クエリ:i[x] > クエリ:-[x] > クエリ:dev[x] > クエリ:identical?[x] > モジュール:FileUtils[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

検索結果

FileUtils.#identical?(file_a, file_b) -> bool (24313.0)

ファイル file_a と file_b の内容が同じなら真を返します。

...ファイル file_a と file_b の内容が同じなら真を返します。

@param file_a ファイル名。

@param file_b ファイル名。

//emlist[][ruby]{
require 'fileutils'
FileUtils
.cmp('somefile', 'somefile') #=> true
FileUtils
.cmp('/dev/null', '/dev/urandom') #=> false
//}...