I had some videos (actually a folder that one more level of folders and finally video files).
I wanted to generate .xspf
files for the whole folder, where each subfolder became a playlist. i.e I wanted to generate multiple files (one corresponding to each folder)
XSPF files are used by VLC to store a string of videos. You can open the file with VLC and it will play them as a playlist, allowing prev/next video.
tree.js
is used for generating the tree structure of the root folder, as an object.