# Exporting folder structure and filenames from library

**URL:** <https://forums.plex.tv/t/exporting-folder-structure-and-filenames-from-library/845871>\
**Category:** Plex Media Server\
**Tags:** server-linux, library-management\
**Created:** [June 29, 2023, 12:38am UTC](https://forums.plex.tv/t/exporting-folder-structure-and-filenames-from-library/845871 "2023-06-29T00:38:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevencas](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@stevencas](https://forums.plex.tv/u/stevencas)\
**Post date:** [June 29, 2023, 12:38am UTC](https://forums.plex.tv/t/exporting-folder-structure-and-filenames-from-library/845871/1 "2023-06-29T00:38:14Z")

</div>

My plex server is running on debian.

I recently had two drives fail in a raid5 array, and need to rebuild that library.

Is there a way I can export the folder structure to a text file or similar, given that the data is no longer available for browsing in the dead array - but is still visible in the info-section for each item in the library?

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [June 29, 2023, 1:20am UTC](https://forums.plex.tv/t/exporting-folder-structure-and-filenames-from-library/845871/2 "2023-06-29T01:20:34Z")

</div>

Don’t empty the trash in Plex. That would delete the info from the database.

WebTools-NG [Export Tools](https://github.com/WebTools-NG/WebTools-NG/wiki/ExportTools) allows you to export any or all of the information about your media into a .csv file.

This includes the file path to each movie/episode/etc.

> **[GitHub - WebTools-NG/WebTools-NG: WebTools Next Generation for Plex](https://github.com/WebTools-NG/WebTools-NG)**
>
> WebTools Next Generation for Plex. Contribute to WebTools-NG/WebTools-NG development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![stevencas](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@stevencas](https://forums.plex.tv/u/stevencas)\
**Post date:** [June 29, 2023, 2:22am UTC](https://forums.plex.tv/t/exporting-folder-structure-and-filenames-from-library/845871/3 "2023-06-29T02:22:12Z")

</div>

Any tips on making the CSV readable?  
Tried importing it to Google Sheets, without getting the proper formatting.  
Also tried an online conversion to xlsx with the same result

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [June 29, 2023, 2:37am UTC](https://forums.plex.tv/t/exporting-folder-structure-and-filenames-from-library/845871/4 "2023-06-29T02:37:31Z")

</div>

I use Google Sheets. It sometimes has one or two movies aligned incorrectly with column headings, but the majority are correct.

`Part File Combined` has the full path and file name (at least for movies).

File → Import.  
Import Location: Replace Spreadsheet  
Separator type: Detect automatically  
Convert text… not selected.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [June 29, 2023, 9:05am UTC](https://forums.plex.tv/t/exporting-folder-structure-and-filenames-from-library/845871/5 "2023-06-29T09:05:48Z")

</div>

Set Export Tools to use a Tab as column separator character. Makes it much less likely that the columns get shifted due to a stray semicolon in the actual metadata.

LibreOffice can handle the exported files well, including filtering and sorting by several columns at once.

---

<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:** [June 29, 2023, 1:16pm UTC](https://forums.plex.tv/t/exporting-folder-structure-and-filenames-from-library/845871/6 "2023-06-29T13:16:10Z")

</div>

Side note: This module will export all the medias that are missing from the filesystem

> **[Find Media](https://github.com/WebTools-NG/WebTools-NG/wiki/Find-Media)**
>
> WebTools Next Generation for Plex. Contribute to WebTools-NG/WebTools-NG development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![stevencas](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@stevencas](https://forums.plex.tv/u/stevencas)\
**Post date:** [June 30, 2023, 4:38am UTC](https://forums.plex.tv/t/exporting-folder-structure-and-filenames-from-library/845871/7 "2023-06-30T04:38:04Z")

</div>

Thanks. Got it exported.  
Heading down the rabbithole

---

<div class="post-metadata">

**Author:** ![stevencas](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@stevencas](https://forums.plex.tv/u/stevencas)\
**Post date:** [June 30, 2023, 6:11pm UTC](https://forums.plex.tv/t/exporting-folder-structure-and-filenames-from-library/845871/8 "2023-06-30T18:11:20Z")

</div>

After fetching a bit of content - will a library scan remove old info about intro and credits markers, thus making it neccessary to re-scan for these, or will the old info be used if it’s replaced with the same files later?

---

<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:** [September 28, 2023, 6:11pm UTC](https://forums.plex.tv/t/exporting-folder-structure-and-filenames-from-library/845871/9 "2023-09-28T18:11:47Z")

</div>

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