# Library folders list

**URL:** <https://forums.plex.tv/t/library-folders-list/908984>\
**Category:** Plex Media Server\
**Tags:** server-truenas\
**Created:** [March 15, 2025, 6:23pm UTC](https://forums.plex.tv/t/library-folders-list/908984 "2025-03-15T18:23:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berkyjay](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/berkyjay/32/17332_2.png) [@Berkyjay](https://forums.plex.tv/u/Berkyjay)\
**Post date:** [March 15, 2025, 6:23pm UTC](https://forums.plex.tv/t/library-folders-list/908984/1 "2025-03-15T18:23:13Z")

</div>

In the WebUI, you can “edit” your libraries and add folders to those libraries:

 ![image](https://global.discourse-cdn.com/plex/original/4X/f/7/9/f79030c98def565457bebcea38861aca2b949e5c.png)

Is there a way to edit this list from my server? I’m currently migrating files to a new location and I will have to edit all of these paths. Doing it through the WebUI is a pain, so I was hoping these are kept in some text document that can be edited.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [March 15, 2025, 6:33pm UTC](https://forums.plex.tv/t/library-folders-list/908984/2 "2025-03-15T18:33:35Z")

</div>

Theoretically, you can change the library folders in the database – but if messed up, that can wreck your server for good.  
Using the web app might be cumbersome but works.

[https://support.plex.tv/articles/201154537-move-media-content-to-a-new-location/](https://support.plex.tv/articles/201154537-move-media-content-to-a-new-location/)

---

<div class="post-metadata">

**Author:** ![Berkyjay](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/berkyjay/32/17332_2.png) [@Berkyjay](https://forums.plex.tv/u/Berkyjay)\
**Post date:** [March 15, 2025, 7:17pm UTC](https://forums.plex.tv/t/library-folders-list/908984/5 "2025-03-15T19:17:10Z")

</div>

Yeah I don’t want to edit the database directly…dragons lie on that path. I was hoping there was some config file stored in the jail running Plex. Oh well, thanks for the insight.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [March 15, 2025, 7:19pm UTC](https://forums.plex.tv/t/library-folders-list/908984/6 "2025-03-15T19:19:22Z")

</div>

There’s always the option to consider streamlining your folder structure.  
Do you really need the distinction by source/network?

---

<div class="post-metadata">

**Author:** ![Berkyjay](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/berkyjay/32/17332_2.png) [@Berkyjay](https://forums.plex.tv/u/Berkyjay)\
**Post date:** [March 15, 2025, 7:44pm UTC](https://forums.plex.tv/t/library-folders-list/908984/7 "2025-03-15T19:44:26Z")

</div>

I am in the process of streamlining my directory structure. Way back when I built my Truenas server I had my media libraries separated into their own datasets. But now I’m moving them all into one Media/ dataset.

> [@tom80H](#):
>
> Do you really need the distinction by source/network?

As to this, yes, I believe I do. The last time I tried just pointing to the root Television/ folder, plex imported all of the files individually. It didn’t group them by show at all. Now maybe I don’t need the network/ directory, but I prefer that as a way to keep my media organized.

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [March 15, 2025, 8:46pm UTC](https://forums.plex.tv/t/library-folders-list/908984/8 "2025-03-15T20:46:15Z")

</div>

> [@Berkyjay](#):
>
> As to this, yes, I believe I do.

You dont, see [https://support.plex.tv/articles/naming-and-organizing-your-tv-show-files/](https://support.plex.tv/articles/naming-and-organizing-your-tv-show-files/) if Needed we can assist

---

<div class="post-metadata">

**Author:** ![Berkyjay](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/berkyjay/32/17332_2.png) [@Berkyjay](https://forums.plex.tv/u/Berkyjay)\
**Post date:** [March 15, 2025, 9:06pm UTC](https://forums.plex.tv/t/library-folders-list/908984/9 "2025-03-15T21:06:40Z")

</div>

But does having a network directory mess up how Plex parses my library? Instead of having to add `/media/Television/adult_swim` to my TV Shows library, can I just add `/media/Television` and it will parse everything correctly? Or do I have to move all of my show directories out of their network parent directories and into the `Television/` directory? If that’s the case then this makes things much easier on me.

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [March 15, 2025, 9:09pm UTC](https://forums.plex.tv/t/library-folders-list/908984/10 "2025-03-15T21:09:13Z")

</div>

> [@Berkyjay](#):
>
> Or do I have to move all of my show directories out of their network parent directories and into the `Television/` directory?

This, and they still have to follow our naming guide!

But you must add the `/media/Television` path to the library first, before the move  
And after the move, refresh your library, followed by deleting the old no longer used paths from the library

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [March 15, 2025, 9:15pm UTC](https://forums.plex.tv/t/library-folders-list/908984/11 "2025-03-15T21:15:51Z")

</div>

And adding to self here…

If you fear this, you could create a `/media/tv` directory, add that path to your lib, and then move your shows to that one by one.

When checking if it works, as in a refresh of your library, you’ll see that the episodes will most likely be listed twice, both new and old path, and old will say unavail  
Simply empty the trash for the library to fix that

---

<div class="post-metadata">

**Author:** ![Berkyjay](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/berkyjay/32/17332_2.png) [@Berkyjay](https://forums.plex.tv/u/Berkyjay)\
**Post date:** [March 15, 2025, 9:16pm UTC](https://forums.plex.tv/t/library-folders-list/908984/12 "2025-03-15T21:16:31Z")

</div>

> [@dane22](#):
>
> This, and they still have to follow our naming guide!
> 
> But you must add the `/media/Television` path to the library first, before the move  
> And after the move, refresh your library, followed by deleting the old no longer used paths from the library

Ah OK, I figured as much. Thanks for the insight. But I prefer keeping my files organized under `Television/<network>/<show> `. It’s really not the biggest hassle in the world.

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [March 15, 2025, 9:17pm UTC](https://forums.plex.tv/t/library-folders-list/908984/13 "2025-03-15T21:17:31Z")

</div>

> [@Berkyjay](#):
>
> But I prefer keeping my files organized under `Television/<network>/<show> `

Your call, and only add extra work for you

---

<div class="post-metadata">

**Author:** ![Berkyjay](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/berkyjay/32/17332_2.png) [@Berkyjay](https://forums.plex.tv/u/Berkyjay)\
**Post date:** [March 15, 2025, 9:19pm UTC](https://forums.plex.tv/t/library-folders-list/908984/14 "2025-03-15T21:19:09Z")

</div>

> [@dane22](#):
>
> Your call, and only add extra work for you

I have custom file management tools that rely on this file structure and Plex isn’t the only app that sources from my media library. 🙂

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [March 15, 2025, 9:20pm UTC](https://forums.plex.tv/t/library-folders-list/908984/15 "2025-03-15T21:20:15Z")

</div>

When said, if editing the database directly, remember to make a backup first!

And the library paths are in a table named `section_locations`

---

<div class="post-metadata">

**Author:** ![Berkyjay](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/berkyjay/32/17332_2.png) [@Berkyjay](https://forums.plex.tv/u/Berkyjay)\
**Post date:** [March 15, 2025, 9:21pm UTC](https://forums.plex.tv/t/library-folders-list/908984/16 "2025-03-15T21:21:38Z")

</div>

> [@dane22](#):
>
> And the library paths are in a table named `section_locations`

🤘

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [June 13, 2025, 9:22pm UTC](https://forums.plex.tv/t/library-folders-list/908984/17 "2025-06-13T21:22:11Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
