Use cp instead of FileUtils.copy_entry.
This commit is contained in:
parent
c9aa25e6d2
commit
556e76b037
@ -16,7 +16,9 @@ module UnpackStrategy
|
||||
|
||||
def extract_to_dir(unpack_dir, basename:, verbose:)
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user