Skip to content
Snippets Groups Projects
Commit 4fb22427 authored by Fabrice Le Goff's avatar Fabrice Le Goff
Browse files

remove code used to support very old helper files

parent 4f4d2a3d
No related branches found
No related tags found
No related merge requests found
...@@ -48,19 +48,6 @@ class ManagerThread(threading.Thread): ...@@ -48,19 +48,6 @@ class ManagerThread(threading.Thread):
# Check the validity of all the helper files from previous runs # Check the validity of all the helper files from previous runs
self.logger.debug('Check helper files from previous run') self.logger.debug('Check helper files from previous run')
for folder in self.conf.DirList:
pattern = '**/*' if self.conf.RecursiveSourceFolder else '*'
for oldfile in pathlib.Path(folder).glob(pattern):
if oldfile.is_dir(): continue
if oldfile.suffix in (Constants.tobecopied_ext, Constants.copied_ext,
Constants.copying_ext, Constants.problematic_ext):
to_remove = False
with open(oldfile) as of:
if len(of.readlines()) < 4:
to_remove = True
if to_remove:
os.remove(oldfile)
# Handle .COPIED files from previous run # Handle .COPIED files from previous run
self.logger.info('Handle .COPIED files from previous run') self.logger.info('Handle .COPIED files from previous run')
for folder in self.conf.DirList: for folder in self.conf.DirList:
......
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