Project

General

Profile

Feature #9260

make FileUtils.rm_rf raise on errors

Added by bdimych (Dmitry Bolshakov) almost 6 years ago.

Status:
Open
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?

Also available in: Atom PDF