def METHOD_NAME(self, track):
    path = self.formatter.format(track)
    directorypath = os.path.dirname(path)
    if not os.path.exists(directorypath):
        os.makedirs(directorypath)
    extension = transcoder.FORMATS[self.transcoder.dest_format]['extension']
    return path + '.' + extension