Directory


new Directory(client, source)

Object representation of a directory. Directories are representations of folders that contain other folders and songs, they
map to directories on the MPD server's machine. This appears to be a fairly stable structure returned by MPD.
I could see an argument in favor of a common ancesstor with Song, because everything in this class has a direct analog in Song.

Parameters:
Name Type Description
client MPD

the MPD client object that owns this

source directory_metadata

raw metadata javascript object that contains the MPD reported data for this song

Source: