mirror of
https://github.com/KevinMidboe/transatlanticTorrentExpress.git
synced 2025-10-29 09:50:21 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user