Island: Add delete_files_by_pattern() to IFileRepository

This commit is contained in:
Shreya Malviya 2022-09-28 15:35:58 +05:30
parent 699f2210f4
commit d9b55a5c21
1 changed files with 11 additions and 0 deletions

View File

@ -49,6 +49,17 @@ class IFileRepository(metaclass=abc.ABCMeta):
"""
pass
@abc.abstractmethod
def delete_files_by_pattern(self, file_name_pattern: str):
"""
Delete files whose names match a particular pattern
This method matches relevant files and deletes them using `delete_file()`.
:param file_name_pattern: A file name pattern that should be matched to delete files
"""
pass
@abc.abstractmethod
def delete_all_files(self):
"""