def dirs_in_library(library, item):
 return [ancestor for ancestor in ancestry(item) if ancestor.startswith(library)][1:]

def dirs_in_library ( library , item ) : return [ ancestor for ancestor in ancestry ( item ) if ancestor . startswith ( library ) ] [ 1 : ]
creates a list of ancestor directories in the beets library path .