'Just the folder name of the episode'

def formatted_dir(self, pattern=None, multi=None):

    if (pattern is None):
        if (self.show.air_by_date and sickrage.srCore.srConfig.NAMING_CUSTOM_ABD and (not self.relatedEps)):
            pattern = sickrage.srCore.srConfig.NAMING_ABD_PATTERN
        elif (self.show.sports and sickrage.srCore.srConfig.NAMING_CUSTOM_SPORTS and (not self.relatedEps)):
            pattern = sickrage.srCore.srConfig.NAMING_SPORTS_PATTERN
        elif (self.show.anime and sickrage.srCore.srConfig.NAMING_CUSTOM_ANIME):
            pattern = sickrage.srCore.srConfig.NAMING_ANIME_PATTERN
        else:
            pattern = sickrage.srCore.srConfig.NAMING_PATTERN
    name_groups = re.split(u'[\\\\/]', pattern)
    if (len(name_groups) == 1):
        return u''
    else:
        return self._format_pattern(os.sep.join(name_groups[:(-1)]), multi)
