Skip to content
Snippets Groups Projects
Commit 08b11122 authored by sveseli's avatar sveseli
Browse files

fix spaces

parent 5471103c
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ class FtpUtility:
return md5Sum
def statFile(self, filePath, fileInfo={}):
fileName = os.path.basename(filePath)
fileName = os.path.basename(filePath)
if not self.ftpClient:
self.ftpClient = self.getFtpClient(self.host, self.port, self.username, self.password)
# Need this to be class members for the callback function
......@@ -111,7 +111,7 @@ class FtpUtility:
fileInfo['fileSize'] = fileStatDict.get('Size')
modifyTime = fileStatDict.get('Modify')
modifyTime = time.mktime(time.strptime(modifyTime, '%Y%m%d%H%M%S'))
fileInfo['fileModificationTime'] = modifyTime
fileInfo['fileModificationTime'] = modifyTime
fileInfo['fileModificationTimeStamp'] = TimeUtility.formatLocalTimeStamp(modifyTime)
del self.mlsdFileStatDict[fileName]
return fileInfo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment