Project

General

Profile

Actions

Feature #4865

closed

Documentation of FileUtils is very unclear on how errors are handled

Added by x3ro (x3ro _) almost 13 years ago. Updated over 11 years ago.

Status:
Rejected
Target version:
-
[ruby-core:36919]

Description

Documentation of FileUtils is very unclear on how errors are handled.

Looking at the documentation at http://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/classes/FileUtils.html on "cp_r" you can see that error handling isn't mentioned at all, and you can't see how errors are handled from the attached source either. I had to follow this path to finally find out how errors were handled:

cp_r -> copy_entry -> Entry_.traverse -> preorder_traverse

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0