るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.019秒)
トップページ > バージョン:2.7.0[x] > クエリ:Exception[x] > モジュール:FileUtils[x]

別のキーワード

  1. _builtin exception
  2. exception exception
  3. bigdecimal exception_all
  4. bigdecimal exception_nan
  5. thread abort_on_exception

ライブラリ

キーワード

検索結果

FileUtils.#remove(list, options = {}) -> () (22.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 = {}) -> () (22.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
//}...