79件ヒット
[1-79件を表示]
(0.010秒)
ライブラリ
- fileutils (79)
検索結果
先頭5件
- FileUtils
. # copy _ entry(src , dest , preserve = false , dereference _ root = false) -> () - FileUtils
. # copy _ file(src , dest , preserve = false , dereference _ root = true) -> () - FileUtils
. # cp _ lr(src , dest , noop: nil , verbose: nil , dereference _ root: true , remove _ destination: false) - FileUtils
. # chown(user , group , list , options = {}) -> Array - FileUtils
. # chown _ R(user , group , list , options = {}) -> Array
-
FileUtils
. # copy _ entry(src , dest , preserve = false , dereference _ root = false) -> () (114.0) -
ファイル src を dest にコピーします。
...のときは更新時刻と、
可能なら所有ユーザ・所有グループもコピーします。
@param dereference_root dereference_root が真のときは src についてだけシンボリックリンクの指す
内容をコピーします。偽の... -
FileUtils
. # copy _ file(src , dest , preserve = false , dereference _ root = true) -> () (114.0) -
ファイル src の内容を dest にコピーします。
...のときは更新時刻と、
可能なら所有ユーザ・所有グループもコピーします。
@param dereference_root dereference_root が真のときは src についてだけシンボリックリンクの指す
内容をコピーします。偽の... -
FileUtils
. # cp _ lr(src , dest , noop: nil , verbose: nil , dereference _ root: true , remove _ destination: false) (108.0) -
src へのハードリンク dest を作成します。 src がディレクトリの場合、再帰的にリンクします。 dest がディレクトリの場合、src へのハードリンク dest/src を作成します。
...t リンク作成先のファイルかディレクトリです。
@param options :noop, :verbose, :dereference_root, :remove_destination が指定できます。
c:FileUtils#options
@raise ArgumentError dest が src に含まれる場合に発生します。
@raise Errno::EEXIST src......re 'fileutils'
FileUtils.rm_r site_ruby + '/mylib', force: true
FileUtils.cp_lr 'lib/', site_ruby + '/mylib'
//}
//emlist[様々なファイルを対象ディレクトリにリンクする例][ruby]{
require 'fileutils'
FileUtils.cp_lr %w(mail.rb field.rb debug/), site_ruby + '/tmail'
FileUtils.cp_......する例][ruby]{
require 'fileutils'
# ディレクトリそのものではなく、ディレクトリの内容をリンクしたい場合は、
# 以下のようになります。(たとえば src/x -> dest/x, src/y -> dest/y)
FileUtils.cp_lr 'src/.', 'dest'
# FileUtils.cp_lr('src', 'dest') は de... -
FileUtils
. # chown(user , group , list , options = {}) -> Array (7.0) -
ファイル list の所有ユーザと所有グループを user と group に変更します。
...ptions :noop と :verbose が指定可能です。
c:FileUtils#options
@return list を配列として返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.chown 'root', 'staff', '/usr/local/bin/ruby'
FileUtils.chown nil, 'bin', Dir.glob('/usr/bin/*'), verbose: true
//}... -
FileUtils
. # chown _ R(user , group , list , options = {}) -> Array (7.0) -
list 以下のファイルの所有ユーザと所有グループを user と group へ再帰的に変更します。
...。
c:FileUtils#options
@return list を配列として返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.chown 'root', 'staff', '/usr/local/bin/ruby'
FileUtils.chown nil, 'bin', Dir.glob('/usr/bin/*'), verbose: true
require 'fileutils'
FileUtils.chown_R 'www', 'www',... -
FileUtils
. # cp _ r(src , dest , options = {}) -> () (7.0) -
src を dest にコピーします。src がディレクトリであったら再帰的に コピーします。その際 dest がディレクトリなら dest/src にコピーします。
...: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('lib/', site_ruby + '/myl......ib')
# 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)
//}... -
FileUtils
. options -> Array (7.0) -
オプション名の配列を返します。
...オプション名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options
# => ["verbose", "mode", "noop", "parents", "force", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}......オプション名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options
# => ["noop", "verbose", "force", "mode", "parents", "owner", "group", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}...