I actually understood the directory output the first time. The idea was to do the least amount of parsing possible, but if you really want to remove directory entries, let's remove them. I don't care enough for it.

Now, for the Last-Modified, we have to plan for additional tags that MPD might introduce in the future. For example, MPD might introduce Last-Access (for last access time). Then you have:

```
directory: foo
Last-Modified: <date1>
Last-Accessed: <date2>
file: foo/bar.mp3
Last-Modified: <date3>
Last-Accessed: <date3>
...
```
So, as you can see, we need to remove *any* tags that comes after a directory and before the next file/directory. We can't make assumptions about the presence or absence of tags.