# Question concerning \`paths\`

**URL:** https://discourse.beets.io/t/question-concerning-paths/773
**Category:** Help
**Created:** [May 29, 2019, 1:30pm UTC](https://discourse.beets.io/t/question-concerning-paths/773 "2019-05-29T13:30:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rkrug](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/rkrug/32/204_2.png) [@rkrug](https://discourse.beets.io/u/rkrug)
#### Post date: [May 29, 2019, 1:30pm UTC](https://discourse.beets.io/t/question-concerning-paths/773/1 "2019-05-29T13:30:17Z")

</div>

Hi

I have two questions concerning paths:

1. I have the following paths specification in my config file:

Just to be sure - they are evaluated from top to bottom, and it is the first one which matches wins - correct?

1. I have the $missing in there - is it possible, to put all albums, which have at least one missing track, into one folder? Something like

In the same context: can I query all albums which have at least one missing track?

Thanks,

Rainer

---

<div class="post-metadata">

### Author: ![rkrug](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/rkrug/32/204_2.png) [@rkrug](https://discourse.beets.io/u/rkrug)
#### Post date: [May 29, 2019, 1:34pm UTC](https://discourse.beets.io/t/question-concerning-paths/773/2 "2019-05-29T13:34:41Z")

</div>

Found the answer to the second question concerning list:

```
 beet list -af '$missing $album' missing:1..99 | sort
```

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [May 29, 2019, 1:42pm UTC](https://discourse.beets.io/t/question-concerning-paths/773/3 "2019-05-29T13:42:37Z")

</div>

> [@rkrug](#):
>
> Just to be sure - they are evaluated from top to bottom, and it is the first one which matches wins - correct?

Yes.

> [@rkrug](#):
>
> I have the $missing in there - is it possible, to put all albums, which have at least one missing track, into one folder? Something like

Remember that the “key” for a path is just a beets query, so any query you can use with `list` can also appear there. So `missing:1..` will do, for example.

---

<div class="post-metadata">

### Author: ![rkrug](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/rkrug/32/204_2.png) [@rkrug](https://discourse.beets.io/u/rkrug)
#### Post date: [May 29, 2019, 1:45pm UTC](https://discourse.beets.io/t/question-concerning-paths/773/4 "2019-05-29T13:45:24Z")

</div>

That sounds perfect. So I could also do something like `missing:1.. genre:jazz`?

Cool.

---

<div class="post-metadata">

### Author: ![rkrug](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/rkrug/32/204_2.png) [@rkrug](https://discourse.beets.io/u/rkrug)
#### Post date: [May 29, 2019, 2:15pm UTC](https://discourse.beets.io/t/question-concerning-paths/773/5 "2019-05-29T14:15:05Z")

</div>

Hm. I tried

```
genre:Jazz missing:1..: Jazz/00_missing_$missing/$albumartist/$album%aunique{} ($missing)/$disc.$track $title
genre:Jazz: Jazz/$albumartist/$album%aunique{} ($missing)/$disc.$track $title

```

but the first one got not triggered, although I have two albums there:

```
16:13 $ beet list -af '$missing $album' missing+ genre:jazz missing:1..
7 Bar Jazz
12 Toccata: Play Bach
```

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [May 29, 2019, 2:37pm UTC](https://discourse.beets.io/t/question-concerning-paths/773/6 "2019-05-29T14:37:06Z")

</div>

That’s always somewhat tricky to debug, but you’re on the right track here. You might try fiddling around with the query and the template to see what you can get to trigger—a little exploration would likely be fruitful!
