diff --git a/lib/simplecov-html.rb b/lib/simplecov-html.rb
index 2887811..eae44fa 100644
--- a/lib/simplecov-html.rb
+++ b/lib/simplecov-html.rb
@@ -27,7 +27,7 @@ def initialize
def format(result)
unless @inline_assets
Dir[File.join(@public_assets_dir, "*")].each do |path|
- FileUtils.cp_r(path, asset_output_path)
+ FileUtils.cp_r(path, asset_output_path, remove_destination: true)
end
end