Is there a way to get ruby to do a forced copy? FileUtils.cp_r seems not to have a :force => true option.
No, but it does have :remove_destination
as an option, which does much the same thing.
If you're using FileUtils.cp
to copy a single file, overwriting the target file if it exists is the default behavior; no "force" or similar option is necessary.
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