Commit 2d0e9cd7 by James Cammarata

Revert "Fix for issue 5739. The copy module does not delete directories it will…

Revert "Fix for issue 5739. The copy module does not delete directories it will only unlinks symlinks."

This reverts commit b20dc4f5.
parent 36f90dee
...@@ -124,6 +124,8 @@ class ActionModule(object): ...@@ -124,6 +124,8 @@ class ActionModule(object):
diffs = [] diffs = []
module_result = {"changed": False} module_result = {"changed": False}
for source_full, source_rel in source_files: for source_full, source_rel in source_files:
# We need to get a new tmp path for each file, otherwise the copy module deletes the folder.
tmp = self.runner._make_tmp_path(conn)
local_md5 = utils.md5(source_full) local_md5 = utils.md5(source_full)
if local_md5 is None: if local_md5 is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment