Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我复制这样的文件:
require 'fileutils' FileUtils.copy(source_file, dest_file)
我想知道这个操作是否成功,如果没有,错误是什么。
我在哪里可以找到可以抛出的异常?
因为它没有记录,你必须检查来源。