るりまサーチ

最速Rubyリファレンスマニュアル検索!
535件ヒット [501-535件を表示] (0.205秒)

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_dev
  3. etc sc_2_c_bind
  4. tracer display_c_call
  5. tracer display_c_call=

ライブラリ

キーワード

検索結果

<< < ... 4 5 6 >>

FileUtils.#rmdir(dir, options = {}) -> () (8.0)

ディレクトリ dir を削除します。

...rbose が指定できます。
c
:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils
.rmdir('somedir')
FileUtils
.rmdir(%w(somedir anydir otherdir))
# 実際にはディレクトリの削除は行わずにメッセージ出力のみ
FileUtils
.rmdir('somedir', verbose: tru...

FileUtils.#rmtree(list, options = {}) -> () (8.0)

ファイルまたはディレクトリ list を再帰的に消去します。

...(list, force: true) と同じです。

@param list 削除する対象。一つの場合は文字列も指定可能です。
二つ以上指定する場合は配列で指定します。

@param options :noop, :verbose, :secure が指定できます。
c
:FileUtils#options...
...ソッドにはローカル脆弱性が存在します。
この脆弱性を回避するには :secure オプションを使用してください。
詳しくは FileUtils.#remove_entry_secure の項を参照してください。

@see FileUtils.#rm, FileUtils.#rm_r, FileUtils.#remove_entry_secure...

FileUtils.#uptodate?(newer, older_list, options = nil) -> bool (8.0)

newer が、older_list に含まれるすべてのファイルより新しいとき真。 存在しないファイルは無限に古いとみなされます。

...@param options どのようなオプションも指定することはできません。

@raise ArgumentError options にオプションを指定した場合に発生します。

//emlist[][ruby]{
require 'fileutils'
FileUtils
.uptodate?('hello.o', ['hello.c', 'hello.h']) or system('make')
//}...
<< < ... 4 5 6 >>