79件ヒット
[1-79件を表示]
(0.065秒)
別のキーワード
検索結果
先頭5件
-
FileUtils
. # remove(list , options = {}) -> () (18202.0) -
list で指定された対象を消去します。
...は配列で指定します。
@param options :force, :noop, :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.rm('junk.txt')
FileUtils.rm(Dir.glob('*~'))
FileUtils.rm('NotExistFile', force: true) # never raises exception
//}... -
FileUtils
. # rm(list , options = {}) -> () (3102.0) -
list で指定された対象を消去します。
...は配列で指定します。
@param options :force, :noop, :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.rm('junk.txt')
FileUtils.rm(Dir.glob('*~'))
FileUtils.rm('NotExistFile', force: true) # never raises exception
//}... -
FileUtils
. # cp _ lr(src , dest , noop: nil , verbose: nil , dereference _ root: true , remove _ destination: false) (208.0) -
src へのハードリンク dest を作成します。 src がディレクトリの場合、再帰的にリンクします。 dest がディレクトリの場合、src へのハードリンク dest/src を作成します。
...@param dest リンク作成先のファイルかディレクトリです。
@param options :noop, :verbose, :dereference_root, :remove_destination が指定できます。
c:FileUtils#options
@raise ArgumentError dest が src に含まれる場合に発生します。
@raise Errno... -
FileUtils
. # rm _ r(list , options = {}) -> () (113.0) -
ファイルまたはディレクトリ list を再帰的に消去します。
...tions :force, :noop, :verbose, :secure が指定できます。
c:FileUtils#options
=== 注意
このメソッドにはローカル脆弱性が存在します。
この脆弱性を回避するには :secure オプションを使用してください。
詳しくは FileUtils.#remove......_entry_secure の項を参照してください。
//emlist[][ruby]{
require 'fileutils'
FileUtils.rm_r(Dir.glob('/tmp/*'))
FileUtils.rm_r(Dir.glob('/tmp/*'), secure: true)
//}
@see FileUtils.#rm, FileUtils.#remove_entry_secure... -
FileUtils
. # rm _ rf(list , options = {}) -> () (113.0) -
ファイルまたはディレクトリ list を再帰的に消去します。
...m options :noop, :verbose, :secure が指定できます。
c:FileUtils#options
=== 注意
このメソッドにはローカル脆弱性が存在します。
この脆弱性を回避するには :secure オプションを使用してください。
詳しくは FileUtils.#remove_ent......ry_secure の項を参照してください。
@see FileUtils.#rm, FileUtils.#rm_r, FileUtils.#remove_entry_secure... -
FileUtils
. # rmtree(list , options = {}) -> () (113.0) -
ファイルまたはディレクトリ list を再帰的に消去します。
...m options :noop, :verbose, :secure が指定できます。
c:FileUtils#options
=== 注意
このメソッドにはローカル脆弱性が存在します。
この脆弱性を回避するには :secure オプションを使用してください。
詳しくは FileUtils.#remove_ent......ry_secure の項を参照してください。
@see FileUtils.#rm, FileUtils.#rm_r, FileUtils.#remove_entry_secure... -
FileUtils
. # cp _ r(src , dest , options = {}) -> () (107.0) -
src を dest にコピーします。src がディレクトリであったら再帰的に コピーします。その際 dest がディレクトリなら dest/src にコピーします。
...。
@param dest コピー先のファイルかディレクトリです。
@param options :preserve, :noop, :verbose, :dereference_root, :remove_destination が指定できます。
c:FileUtils#options
//emlist[][ruby]{
# installing ruby library "mylib" under the site_ruby
require '...