るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.037秒)
トップページ > クエリ:io[x] > バージョン:2.4.0[x] > クエリ:on[x] > クエリ:-[x] > モジュール:FileUtils[x] > クエリ:touch[x]

別のキーワード

  1. optparse on
  2. optionparser on
  3. tracer on
  4. thread abort_on_exception
  5. _builtin abort_on_exception

ライブラリ

検索結果

FileUtils.#touch(list, options = {}) -> () (55261.0)

list で指定されたファイルの最終変更時刻 (mtime) と アクセス時刻 (atime) を変更します。

...場合は配列で指定します。

@param options :mtime, :nocreate, :noop, :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils
.touch('timestamp')
FileUtils
.touch('timestamp', mtime: Time.now)
FileUtils
.touch(Dir.glob('*.c'))
//}...