Island: Implement delete_files_by_pattern() in FileRepositoryCachingDecorator

This commit is contained in:
Shreya Malviya 2022-09-28 16:26:37 +05:30
parent 5f11008b40
commit cadf0d61d0
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@ class FileRepositoryCachingDecorator(IFileRepository):
self._open_file.cache_clear()
return self._file_repository.delete_file(unsafe_file_name)
def delete_files_by_pattern(self, file_name_pattern: str):
self._open_file.cache_clear()
return self._file_repository.delete_files_by_pattern(file_name_pattern)
def delete_all_files(self):
self._open_file.cache_clear()
return self._file_repository.delete_all_files()