# Update genre-dependent directory after updating genre?

**URL:** https://discourse.beets.io/t/update-genre-dependent-directory-after-updating-genre/892
**Category:** Help
**Created:** [August 25, 2019, 5:48pm UTC](https://discourse.beets.io/t/update-genre-dependent-directory-after-updating-genre/892 "2019-08-25T17:48:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![beetz](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/beetz/32/280_2.png) [@beetz](https://discourse.beets.io/u/beetz)
#### Post date: [August 25, 2019, 5:48pm UTC](https://discourse.beets.io/t/update-genre-dependent-directory-after-updating-genre/892/1 "2019-08-25T17:48:20Z")

</div>

Files are imported to the beets database using `beet imp foo.mp3`. In my case, this triggers the [LastGenre](https://beets.readthedocs.io/en/stable/plugins/lastgenre.html) plugin to apply genre tags automatically. The imported files are stored in a directory structure based on the aforementioned genre tags (`eng/rock/artist/album/foo.mp3`)

If the genre tags are inaccurate, they can be corrected using `beet modify "foo" genre="bar"`, but how do I tell beets to also update the underlying directory structure?

---

<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 25, 2019, 7:17pm UTC](https://discourse.beets.io/t/update-genre-dependent-directory-after-updating-genre/892/2 "2019-08-25T19:17:54Z")

</div>

You’ll want to use the `-a` flag to the modify command. This thread has more context:

> [@Beets doesn’t change directories after modifying metadata](https://discourse.beets.io/t/beets-doesn-t-change-directories-after-modifying-metadata/831/4):
>
> Got it. Can you please try using beet modify -a when modifying album-level fields like albumartist? See further discussion here:
