minor refactoring, added possibility to compare the remote file and downloaded file (--file-read), prepping for #223

This commit is contained in:
Bernardo Damele
2012-12-18 17:49:18 +00:00
parent 9a1eca20b5
commit 8d9aa2c384
4 changed files with 54 additions and 36 deletions

View File

@@ -343,7 +343,7 @@ class Filesystem(GenericFilesystem):
self._stackedWriteFileVbs(tmpPath, wFileContent, dFile, fileType)
sameFile = self.askCheckWrittenFile(wFile, dFile, fileType)
sameFile = self.askCheckWrittenFile(wFile, dFile)
if sameFile is False:
message = "do you want to try to upload the file with "
@@ -353,3 +353,4 @@ class Filesystem(GenericFilesystem):
if not choice or choice.lower() == "y":
self._stackedWriteFileDebugExe(tmpPath, wFile, wFileContent, dFile, fileType)
#self._stackedWriteFilePS(tmpPath, wFileContent, dFile, fileType)
self.askCheckWrittenFile(wFile, dFile)