def __init__(self, path, album): make.FileSimpleDependency.__init__(self, path) self.path = pathutils.path2unicode(path) self.album = album self.filename = os.path.basename(self.path) self.name, self.extension = os.path.splitext(self.filename)
def is_album_root(self): return self.path == pathutils.path2unicode(self.album.source_dir)