3件ヒット
[1-3件を表示]
(0.008秒)
ライブラリ
- fileutils (3)
キーワード
- remove (1)
-
remove
_ entry _ secure (1)
検索結果
先頭3件
-
FileUtils
. # rm(list , options = {}) -> () (54364.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
. # remove(list , options = {}) -> () (18364.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
. # remove _ entry _ secure(path , force = false) -> () (18343.0) -
ファイル path を削除します。path がディレクトリなら再帰的に削除します。
...ら再帰的に削除します。
FileUtils.#rm_r および FileUtils.#remove_entry には
TOCTTOU (time-of-check to time-of-use)脆弱性が存在します。
このメソッドはそれを防ぐために新設されました。
FileUtils.#rm_r および FileUtils.#remove_entry は以下の条件...