# Export plugin cannot export path

**URL:** <https://discourse.beets.io/t/export-plugin-cannot-export-path/401>\
**Category:** Help\
**Created:** [June 24, 2018, 6:23pm UTC](https://discourse.beets.io/t/export-plugin-cannot-export-path/401 "2018-06-24T18:23:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmnn](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@dmnn](https://discourse.beets.io/u/dmnn)\
**Post date:** [June 24, 2018, 6:23pm UTC](https://discourse.beets.io/t/export-plugin-cannot-export-path/401/1 "2018-06-24T18:23:20Z")

</div>

Hello. I have realized that export plugin cannot export path (path to music files). It happens that I have songs without data (artist, title) filled and only way to distinguish exported song is by path.  
I checked the code and can se that the following line causes the problem (info.py):  
data.pop(‘path’, None) # path is fetched from item  
Is there any specific reason that this is needed? I tried removing this line locally on my side and all still seems to work.  
Does anyone know if anything would break by removing this line?

---

<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:** [June 24, 2018, 6:54pm UTC](https://discourse.beets.io/t/export-plugin-cannot-export-path/401/2 "2018-06-24T18:54:45Z")

</div>

Interesting! The problem, I think, is that the `export` plugin reuses code from the `info` plugin. In the context of the latter, it’s important to remove `path` from the returned data because the path is already displayed in another context in that plugin’s output.

On the other hand, including the path in the `export` plugin’s output seems like a good idea. (Perhaps it should be optional so that people can get path-free exports that don’t leak anything about their system setup, in case they want to share the result with the world, for example.)

Perhaps it makes sense to add an additional parameter that allows the latter to disable that removal.

---

<div class="post-metadata">

**Author:** ![dmnn](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@dmnn](https://discourse.beets.io/u/dmnn)\
**Post date:** [June 24, 2018, 7:57pm UTC](https://discourse.beets.io/t/export-plugin-cannot-export-path/401/3 "2018-06-24T19:57:53Z")

</div>

Thanks for explanation. I can do that and submit pull request in a few weeks (quite busy)

---

<div class="post-metadata">

**Author:** ![dmnn](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@dmnn](https://discourse.beets.io/u/dmnn)\
**Post date:** [November 28, 2018, 3:10pm UTC](https://discourse.beets.io/t/export-plugin-cannot-export-path/401/4 "2018-11-28T15:10:19Z")

</div>

Pull request is up.

> <https://github.com/beetbox/beets/pull/3084>
