diff --git a/Script/cs/Threads/ManagerThread.py b/Script/cs/Threads/ManagerThread.py index fff87b0354508def2165f58fe3e1c0bfd4fcc952..ac4d32a73b049b12fe08330880f0fce11d6dda7c 100644 --- a/Script/cs/Threads/ManagerThread.py +++ b/Script/cs/Threads/ManagerThread.py @@ -48,19 +48,6 @@ class ManagerThread(threading.Thread): # Check the validity of all the helper files from previous runs 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 self.logger.info('Handle .COPIED files from previous run') for folder in self.conf.DirList: