るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.050秒)

別のキーワード

  1. option int
  2. option bool
  3. option linger
  4. getoptlong each_option
  5. getoptlong get_option

ライブラリ

モジュール

検索結果

FileUtils.#cp_r(src, dest, options = {}) -> () (18320.0)

src を dest にコピーします。src がディレクトリであったら再帰的に コピーします。その際 dest がディレクトリなら dest/src にコピーします。

...aram options :preserve, :noop, :verbose, :dereference_root, :remove_destination が指定できます。
c:FileUtils#options

//emlist[][ruby]{
# installing ruby library "mylib" under the site_ruby
require 'fileutils'
FileUtils.rm_r(site_ruby + '/mylib', force: true)
FileUtils.cp_r('l...
...ib/', site_ruby + '/mylib')
# other sample
require 'fileutils'
FileUtils.cp_r(%w(mail.rb field.rb debug/), site_ruby + '/tmail')
FileUtils.cp_r(Dir.glob('*.rb'), '/home/taro/lib/ruby',
noop: true, verbose: true)
//}...