mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Fix PowerShell plugin issues affecting fetch module when used against Windows hosts.
This commit is contained in:
parent
6570a6c6de
commit
de267b5655
4 changed files with 21 additions and 8 deletions
|
@ -193,7 +193,7 @@ class Connection(object):
|
|||
def fetch_file(self, in_path, out_path):
|
||||
out_path = out_path.replace('\\', '/')
|
||||
vvv("FETCH %s TO %s" % (in_path, out_path), host=self.host)
|
||||
buffer_size = 2**20 # 1MB chunks
|
||||
buffer_size = 2**19 # 0.5MB chunks
|
||||
if not os.path.exists(os.path.dirname(out_path)):
|
||||
os.makedirs(os.path.dirname(out_path))
|
||||
out_file = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue