# Display folder path length in decimals in columns

**URL:** https://community.mp3tag.de/t/display-folder-path-length-in-decimals-in-columns/62248
**Category:** Support
**Created:** [September 30, 2023, 4:02am UTC](https://community.mp3tag.de/t/display-folder-path-length-in-decimals-in-columns/62248 "2023-09-30T04:02:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Guyver](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@Guyver](https://community.mp3tag.de/u/Guyver)
#### Post date: [September 30, 2023, 4:02am UTC](https://community.mp3tag.de/t/display-folder-path-length-in-decimals-in-columns/62248/1 "2023-09-30T04:02:37Z")

</div>

I'm trying to copy music over from a external drive to an android phone. Some of the file names are to long and the transfer ends prematurely. I'm on Windows and I know the file path and file name can't exceed 256 characters.

I used to have it set up where I had a column named "Path Length" which would display the amount of characters used for each track. I would then manually edit the tracks that were over the 256 limit.

Somehow, because of updating/reinstalling this custom column has been lost. I cannot remember how to get it back. I tried Google, but all I keep getting are results to this page:

> [@Help with smart truncating of long filenames](https://community.mp3tag.de/t/help-with-smart-truncating-of-long-filenames/16455):
>
> I've noticed with my regular filename Action that occasionally the full Windows path + filename output will be too long and return an error within Mp3Tag. For example here's one such path that would be too long for Windows, that I ended up truncating manually with an ellipsis: M:\Music\CDs\Soundtracks\Studio Ghibli\Hayao Miyazaki & Joe Hisaishi Soundtrack Box Set\Ponyo on the Cliff by the Sea (Original Soundtrack)\Joe Hisaishi - Ponyo on the Cliff by the Sea (Original Soundtrack) - 36 - Ponyo …

Someone one in that thread talks about what I'm trying to achieve but there is no explanation as to how to do it. I'm not familar with all the scripting functions and have no idea what I'm doing.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [September 30, 2023, 5:29am UTC](https://community.mp3tag.de/t/display-folder-path-length-in-decimals-in-columns/62248/2 "2023-09-30T05:29:22Z")

</div>

Create a new column with only a label and the  
Value: `$len(%_folderpath%)`

Or if you need the folderpath plus the filename:  
Value: `$len(%_path%)`

Alternatively, you could filter for files which have a path longer than 256 characters, so that you don't have to check manually (and perhaps miss one):  
Filter:  
`"$len(%_path%)" GREATER 256`

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [October 30, 2023, 5:30am UTC](https://community.mp3tag.de/t/display-folder-path-length-in-decimals-in-columns/62248/3 "2023-10-30T05:30:06Z")

</div>

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