Project

General

Profile

Actions

Feature #9260

closed

make FileUtils.rm_rf raise on errors

Added by bdimych (Dmitry Bolshakov) almost 9 years ago. Updated 1 day ago.

Status:
Closed
Priority:
Normal
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 - Bug #18784: `FileUtils.rm_f` and `FileUtils.rm_rf` should not mask exceptionsOpenmame (Yusuke Endoh)Actions
Actions #1

Updated by hsbt (Hiroshi SHIBATA) 1 day ago

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

Updated by hsbt (Hiroshi SHIBATA) 1 day 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