dharple / detox

Tames problematic filenames
BSD 3-Clause "New" or "Revised" License
318 stars 19 forks source link

[feature request] Add ability to set a max filename length #118

Open nightgolfer opened 2 months ago

nightgolfer commented 2 months ago

Recently got my first NAS, and discovered the joys of SMB character- and filename length limitations. Nothing like asking the computer to copy ~100 GB of files overnight, only to discovered that it stopped 1 minute after you went to bed because it found a file SMB didn't like ๐Ÿ™„

As a result, I went searching for the best way to remove problematic characters from large collections of files, and detox seems by far the best option (and also comes highly recommended in many forums). So far I've managed to purge multiple thousands of filenames from special characters โ€” thank you very much for this awesome tool!

I was wondering if it would be possible to add the ability in Detox to shorten filenames (if it's not already there and I'm just too blind to see it ...).

In addition, it might be nice if there could be some "smart" filters before shortening, such as:

Again, any or all of these might already be implementer; if so, please ignore ๐Ÿ˜