# Treat everything at certain directory level as an album

**URL:** <https://discourse.beets.io/t/treat-everything-at-certain-directory-level-as-an-album/2124>\
**Category:** Help\
**Created:** [August 6, 2022, 10:04am UTC](https://discourse.beets.io/t/treat-everything-at-certain-directory-level-as-an-album/2124 "2022-08-06T10:04:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quidproquo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/quidproquo/32/663_2.png) [@quidproquo](https://discourse.beets.io/u/quidproquo)\
**Post date:** [August 6, 2022, 10:04am UTC](https://discourse.beets.io/t/treat-everything-at-certain-directory-level-as-an-album/2124/1 "2022-08-06T10:04:59Z")

</div>

Hi,

My music library is currently organized as follows:

/Music/Artist/Album/ - and this third step can either be a single folder, for single disc releases, or contain any number of folders for multi-disc releases, artwork etc.

Is there any way to tell beets to treat everything at the third folder level as a single album, regardless of how many additional folders it may or may not contain? (Essentially apply the --flat flag to all ‘Album’ level folders, if I understand the documentation correctly).

---

<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:** [August 6, 2022, 3:12pm UTC](https://discourse.beets.io/t/treat-everything-at-certain-directory-level-as-an-album/2124/2 "2022-08-06T15:12:55Z")

</div>

Hmm; could shell globbing work? Something like `beet import --flat /Music/*/*`?
