[ruby-core:81255] [Ruby trunk Bug#13373][Feedback] FileUtils methods for copy, move and remove directories is not providing a decent error trace for letting know if it was success or fail

From: ko1@...
Date: 2017-05-19 07:12:28 UTC
List: ruby-core #81255
Issue #13373 has been updated by ko1 (Koichi Sasada).

Status changed from Open to Feedback

Could you tell us more details? Your sample code and acquired errors (or output).


----------------------------------------
Bug #13373: FileUtils methods for copy, move and remove directories is not providing a decent error trace for letting know if it was success or fail
https://bugs.ruby-lang.org/issues/13373#change-64916

* Author: saul.rosales.b (Saul Rosales)
* Status: Feedback
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Hello Guys

I found trying to create a simple logic for copying, renaming and removing big directories (form 1 to 4 GB size) on Ubuntu Linux, that the FileUtils Module, it is not able to provide a good error or exception mechanism, to let me know if the operation was performed or not. If there is any problem about permissions, size, processing with not enough resources, etc. I tryed to catch any error from using it with a begin rescue end block. But not sufficient or efficient way. I am also seeking if there is a thirdparty gem able to perform the work more safely.

Coud you please let me know if I can help on solving this issue?

Also the documentation do not include exceptions or errors that will be thrown by this Module. 



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next