るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.014秒)
トップページ > バージョン:2.3.0[x] > クエリ:Dir[x] > クエリ:touch[x] > ライブラリ:fileutils[x]

別のキーワード

  1. dir foreach
  2. dir open
  3. dir chdir
  4. dir each_child
  5. rake original_dir

モジュール

検索結果

FileUtils.#touch(list, options = {}) -> () (54382.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'))
//}...