Moved log message for when we move an item to below the Already exists skipping message. If the file already exists we dont print Moving message when its acctually not going to be moved.

This commit is contained in:
2019-05-01 21:17:55 +02:00
parent 1846d15cac
commit a11567dcf6

View File

@@ -32,10 +32,10 @@ def transferFiles(files, localPath, remotePath, host=None, user=None):
transferedFiles = []
for file in files:
logger.info('Moving file: {}'.format(file), es={'file': file})
if file in getFiles(remotePath, host, user):
logger.info('File already exists at remote path. Skipping.')
continue
logger.info('Moving file: {}'.format(file), es={'filename': file})
file = os.path.join(localPath, file)