List all files within the library directory that are not matched

Is it possible to create a list of all files that are in my library directory but not matched? Or should I use beet ls -p and match this against the list of actual files? This should not be hard but if it’s already there why reinvent the wheel…

Hello! There is no built-in way in beets, but a good way to do it might be to use comm to find the difference between beet ls -p and something akin to ls -R in the music directory.

Thanks! I need a bit more sophisticated as I’m trying to properly integrate docker, beets and Lidarr and the directory roots of the local system are different from the dockerized systems but that is something that should not be a problem.

If I remember I will try to post the code here.