るりまサーチ (Ruby 2.5.0)

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

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix rank_e
  4. matrix det_e
  5. open3 capture2e

ライブラリ

キーワード

検索結果

FileUtils.#install(src, dest, options = {}) -> () (9322.0)

src と dest の内容が違うときだけ src を dest にコピーします。

...rve, :noop, :verbose, :mode, :owner, :group が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils
.install('ruby', '/usr/local/bin/ruby', mode: 0755, verbose: true)
FileUtils
.install('lib.rb', '/usr/local/lib/ruby/site_ruby', verbose: true)
//}...

FileUtils.options -> Array (9022.0)

オプション名の配列を返します。

...オプション名の配列を返します。

//emlist[][ruby]{
require 'fileutils'
FileUtils
.options
# => ["noop", "verbose", "force", "mode", "parents", "owner", "group", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}...