Fix PowerShell plugin issues affecting fetch module when used against Windows hosts.

This commit is contained in:
Chris Church 2014-12-01 22:18:35 -05:00
parent 6570a6c6de
commit de267b5655
4 changed files with 21 additions and 8 deletions

View file

@ -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