Use cp instead of FileUtils.copy_entry.

This commit is contained in:
Markus Reiter 2018-08-20 18:31:56 +02:00
parent c9aa25e6d2
commit 556e76b037

View File

@ -16,7 +16,9 @@ module UnpackStrategy
def extract_to_dir(unpack_dir, basename:, verbose:) def extract_to_dir(unpack_dir, basename:, verbose:)
path.children.each do |child| path.children.each do |child|
FileUtils.copy_entry child, unpack_dir/child.basename, true, false system_command! "cp",
args: ["-pR", child.directory? ? "#{child}/." : child, unpack_dir/child.basename],
verbose: verbose
end end
end end
end end