5件ヒット
[1-5件を表示]
(0.051秒)
別のキーワード
ライブラリ
- fileutils (5)
キーワード
- cmp (1)
-
compare
_ file (1) -
compare
_ stream (1) - identical? (1)
- uptodate? (1)
検索結果
先頭5件
-
FileUtils
. # cmp(file _ a , file _ b) -> bool (382.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
//}... -
FileUtils
. # compare _ file(file _ a , file _ b) -> bool (382.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
//}... -
FileUtils
. # identical?(file _ a , file _ b) -> bool (382.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
//}... -
FileUtils
. # compare _ stream(io _ a , io _ b) -> bool (376.0) -
IO オブジェクト io_a と io_b の内容が同じなら真を返します。
IO オブジェクト io_a と io_b の内容が同じなら真を返します。
@param io_a IO オブジェクト。
@param io_b IO オブジェクト。 -
FileUtils
. # uptodate?(newer , older _ list , options = nil) -> bool (307.0) -
newer が、older_list に含まれるすべてのファイルより新しいとき真。 存在しないファイルは無限に古いとみなされます。
...@param options どのようなオプションも指定することはできません。
@raise ArgumentError options にオプションを指定した場合に発生します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.uptodate?('hello.o', ['hello.c', 'hello.h']) or system('make')
//}...