72件ヒット
[1-72件を表示]
(0.028秒)
ライブラリ
- fileutils (72)
検索結果
先頭5件
-
FileUtils
. options -> Array (18114.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"]
//}... -
FileUtils
. # rm _ r(list , options = {}) -> () (144.0) -
ファイルまたはディレクトリ list を再帰的に消去します。
...ram options :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 = {}) -> () (139.0) -
ファイルまたはディレクトリ list を再帰的に消去します。
...@param options :noop, :verbose, :secure が指定できます。
c:FileUtils#options
=== 注意
このメソッドにはローカル脆弱性が存在します。
この脆弱性を回避するには :secure オプションを使用してください。
詳しくは FileUtils.#remo......ve_entry_secure の項を参照してください。
@see FileUtils.#rm, FileUtils.#rm_r, FileUtils.#remove_entry_secure... -
FileUtils
. # rmtree(list , options = {}) -> () (139.0) -
ファイルまたはディレクトリ list を再帰的に消去します。
...@param options :noop, :verbose, :secure が指定できます。
c:FileUtils#options
=== 注意
このメソッドにはローカル脆弱性が存在します。
この脆弱性を回避するには :secure オプションを使用してください。
詳しくは FileUtils.#remo......ve_entry_secure の項を参照してください。
@see FileUtils.#rm, FileUtils.#rm_r, FileUtils.#remove_entry_secure... -
FileUtils
. # move(src , dest , options = {}) -> () (121.0) -
ファイル src を dest に移動します。
...ディレクトリ。
@param options :force, :noop, :verbose, :secure が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.mv('badname.rb', 'goodname.rb')
FileUtils.mv('stuff.rb', 'lib/ruby', force: true)
FileUtils.mv(['junk.txt', 'dust.txt'],... -
FileUtils
. # mv(src , dest , options = {}) -> () (121.0) -
ファイル src を dest に移動します。
...ディレクトリ。
@param options :force, :noop, :verbose, :secure が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.mv('badname.rb', 'goodname.rb')
FileUtils.mv('stuff.rb', 'lib/ruby', force: true)
FileUtils.mv(['junk.txt', 'dust.txt'],...