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

Also available in: Atom PDF

Like0
Like0Like0