Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1import logging 

2from abc import ABCMeta, abstractmethod 

3 

4 

5class DeleteCriteria(metaclass=ABCMeta): 

6 

7 def __init__(self): 

8 logging.info("Base constructor.") 

9 

10 @abstractmethod 

11 def get_files_to_delete(self, files): 

12 """ 

13 Filter files to be deleted based on some criteria 

14 :param files: List of sftp files 

15 :type files: List(SFTPAttributes) 

16 :return: list of filtered sftp files to delete 

17 :rtype: List(SFTPAttributes) 

18 """ 

19 pass