forked from p34709852/monkey
Island: Implement delete_files_by_pattern() in FileRepositoryLoggingDecorator
This commit is contained in:
parent
885a907287
commit
d5b62651a0
|
@ -26,6 +26,10 @@ class FileRepositoryLoggingDecorator(IFileRepository):
|
|||
logger.debug(f"Deleting file {unsafe_file_name}")
|
||||
return self._file_repository.delete_file(unsafe_file_name)
|
||||
|
||||
def delete_files_by_pattern(self, file_name_pattern: str):
|
||||
logger.debug(f'Deleting files whose names match the pattern "{file_name_pattern}"')
|
||||
return self._file_repository.delete_files_by_pattern(file_name_pattern)
|
||||
|
||||
def delete_all_files(self):
|
||||
logger.debug("Deleting all files in the repository")
|
||||
return self._file_repository.delete_all_files()
|
||||
|
|
Loading…
Reference in New Issue