def _allowed_to_proceed(self, verbose):
def _display(msg, paths):<EOL><INDENT>if not paths:<EOL><INDENT>return<EOL><DEDENT>logger.info(msg)<EOL>with indent_log():<EOL><INDENT>for path in sorted(compact(paths)):<EOL><INDENT>logger.info(path)<EOL><DEDENT><DEDENT><DEDENT>if not verbose:<EOL><INDENT>will_remove, will_skip = compress_for_output_listing(self.paths)<EOL><DEDENT>else:<EOL><INDENT>will_remove = list(self.paths)<EOL>will_skip = set()<EOL><DEDENT>_display('<STR_LIT>', will_remove)<EOL>_display('<STR_LIT>', will_skip)<EOL>_display('<STR_LIT>', self._refuse)<EOL>if verbose:<EOL><INDENT>_display('<STR_LIT>', compress_for_rename(self.paths))<EOL><DEDENT>return ask('<STR_LIT>', ('<STR_LIT:y>', '<STR_LIT:n>')) == '<STR_LIT:y>'<EOL>
Display which files would be deleted and prompt for confirmation