be more specific in standard output message as to whether or not the read file is same as remote file

This commit is contained in:
Bernardo Damele
2012-12-19 13:42:56 +00:00
parent 282aeb734f
commit 4f0f729982
2 changed files with 19 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ class Filesystem:
if not output or output in ("y", "Y"):
return self._checkFileLength(localFile, remoteFile, True)
return True
return None
def nonStackedReadFile(self, remoteFile):
errMsg = "'nonStackedReadFile' method must be defined "
@@ -236,7 +236,14 @@ class Filesystem:
if not Backend.isDbms(DBMS.PGSQL):
self.cleanup(onlyFileTbl=True)
self.askCheckReadFile(remoteFilePath, remoteFile)
sameFile = self.askCheckReadFile(remoteFilePath, remoteFile)
if sameFile is True:
remoteFilePath += " (same file)"
elif sameFile is False:
remoteFilePath += " (size differs from remote file)"
elif sameFile is None:
remoteFilePath += " (size not compared to remote file)"
remoteFilePaths.append(remoteFilePath)