Project

General

Profile

Actions

Feature #9260

closed

make FileUtils.rm_rf raise on errors

Added by bdimych (Dmitry Bolshakov) almost 11 years ago. Updated about 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:59190]

Description

I did have read that "force" flag ignores StandardError,
but it was unexpected for me because of linux's "rm -rf" fails if it can't delete.
"rm --help" says "-f ignore nonexistent files"
Imho it sounds better than just ignore all errors
Why isn't it done this way?


Related issues 1 (1 open0 closed)

Related to Ruby master - Feature #18784: `FileUtils.rm_f` and `FileUtils.rm_rf` should not mask exceptionsOpenActions
Actions #1

Updated by hsbt (Hiroshi SHIBATA) about 2 years ago

  • Related to Feature #18784: `FileUtils.rm_f` and `FileUtils.rm_rf` should not mask exceptions added

Updated by hsbt (Hiroshi SHIBATA) about 2 years ago

  • Status changed from Open to Closed

We continue to discuss this to https://bugs.ruby-lang.org/issues/18784.

Actions

Also available in: Atom PDF

Like0
Like0Like0