async def get_files_to_delete(self) -> List[str]:
dir_name, base_name = os.path.split(self.absolute_file_path)<EOL>file_names = await self.loop.run_in_executor(<EOL>None, lambda: os.listdir(dir_name)<EOL>)<EOL>result = []<EOL>prefix = base_name + "<STR_LIT:.>"<EOL>plen = len(prefix)<EOL>for file_name in file_names:<EOL><INDENT>if file_name[:plen] == prefix:<EOL><INDENT>suffix = file_name[plen:]<EOL>if self.ext_match.match(suffix):<EOL><INDENT>result.append(os.path.join(dir_name, file_name))<EOL><DEDENT><DEDENT><DEDENT>if len(result) < self.backup_count:<EOL><INDENT>return []<EOL><DEDENT>else:<EOL><INDENT>return result[: len(result) - self.backup_count]<EOL><DEDENT>
Determine the files to delete when rolling over.