3件ヒット
[1-3件を表示]
(0.021秒)
ライブラリ
- fileutils (3)
キーワード
-
remove
_ entry _ secure (1) - touch (1)
- uptodate? (1)
検索結果
先頭3件
-
FileUtils
. # touch(list , options = {}) -> () (18304.0) -
list で指定されたファイルの最終変更時刻 (mtime) と アクセス時刻 (atime) を変更します。
...場合は配列で指定します。
@param options :mtime, :nocreate, :noop, :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.touch('timestamp')
FileUtils.touch('timestamp', mtime: Time.now)
FileUtils.touch(Dir.glob('*.c'))
//}... -
FileUtils
. # uptodate?(newer , older _ list , options = nil) -> bool (18304.0) -
newer が、older_list に含まれるすべてのファイルより新しいとき真。 存在しないファイルは無限に古いとみなされます。
...@param options どのようなオプションも指定することはできません。
@raise ArgumentError options にオプションを指定した場合に発生します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.uptodate?('hello.o', ['hello.c', 'hello.h']) or system('make')
//}... -
FileUtils
. # remove _ entry _ secure(path , force = false) -> () (22.0) -
ファイル path を削除します。path がディレクトリなら再帰的に削除します。
...ら再帰的に削除します。
FileUtils.#rm_r および FileUtils.#remove_entry には
TOCTTOU (time-of-check to time-of-use)脆弱性が存在します。
このメソッドはそれを防ぐために新設されました。
FileUtils.#rm_r および FileUtils.#remove_entry は以下の条件...