def METHOD_NAME(self):
    """
    Determine the files to delete when rolling over.
    More specific than the earlier method, which just used glob.glob().
    """
    dirName, baseName = os.path.split(self.baseFilename)
    fileNames = os.listdir(dirName)
    result = []
    # See bpo-44753: Don't use the extension when computing the prefix.
    n, e = os.path.splitext(baseName)
    prefix = n + '.'
    plen = len(prefix)
    for fileName in fileNames:
        if self.namer is None:
            # Our files will always start with baseName
            if not fileName.startswith(baseName):
                continue
        else:
            # Our files could be just about anything after custom naming, but
            # likely candidates are of the form
            # foo.log.DATETIME_SUFFIX or foo.DATETIME_SUFFIX.log
            if (not fileName.startswith(baseName) and fileName.endswith(e) and
                    len(fileName) > (plen + 1) and not fileName[plen+1].isdigit()):
                continue
        if fileName[:plen] == prefix:
            suffix = fileName[plen:]
            # See bpo-45628: The date/time suffix could be anywhere in the
            # filename
            parts = suffix.split('.')
            for part in parts:
                if self.extMatch.match(part):
                    result.append(os.path.join(dirName, fileName))
                    break
    if len(result) < self.backupCount:
        result = []
    else:
        result.sort()
        result = result[:len(result) - self.backupCount]
    return result