Fixing bug
This commit is contained in:
parent
56d4354b53
commit
1205dddc9e
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ class Handler(watchdog.events.PatternMatchingEventHandler):
|
||||||
logging.error('Timeout waiting for file {} to exist. Aborting processing.'.format(event.src_path))
|
logging.error('Timeout waiting for file {} to exist. Aborting processing.'.format(event.src_path))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
historicalSize = -1
|
||||||
while (historicalSize != os.path.getsize(event.src_path)):
|
while (historicalSize != os.path.getsize(event.src_path)):
|
||||||
logging.info('waiting for copy to finish....')
|
logging.info('waiting for copy to finish....')
|
||||||
historicalSize = os.path.getsize(event.src_path)
|
historicalSize = os.path.getsize(event.src_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue