I copy a file like this:
require 'fileutils'
FileUtils.copy(source_file, dest_file)
I would like to know if this operation succeeded, and if not, what was the error.
Where could I find the exceptions that can be thrown?
Because it is not documented, you have to check the source.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With