rlv-dan / Snap2HTML

Generates directory listings contained in a single, app-like HTML files
http://www.rlvision.com/snap2html
GNU General Public License v3.0
484 stars 95 forks source link

Snap2HTML does not like long paths #46

Open santinoscripts opened 8 months ago

santinoscripts commented 8 months ago

Hi there, I've downloaded the program Snap2HTML and I like it, it looks very useful but I found out a strange behaviour. If I start it (be it using the GUI or command-line) and select both 'include hidden items' and 'include system items', whenever the program finds a folder with a long path name (> 259 chars) it will end (not crash) before all the folders are indexed. But if I select no options or only one of those options, everything works as expected but the program will skip the rest of the folders (inside the same parent folder) after the folder with the long path name.

Let me make it a bit more visual using this example:

C:.
├───folder 1
│   ├───subfolder 1
│   ├───subfolder 2
│   ├───subfolder 3 - this one has a very very long name
│   ├───subfolder 4
│   └───subfolder 5
└───folder 2
    ├───subfolder 1
    └───subfolder 2

So, if I check both 'hidden items' and 'system items' the program will only index up until "C:\folder 1\subfolder 2". Not "subfolder 3" or "C:\folder 2". And If I check none or only one of the options it will index "C:\folder 2" this time, but it will also skip all the folders inside "C:\folder 1" after "C:\folder 1\subfolder 2".

I hope I've made it clear so you can review it.

Looks like this is an old problem: https://github.com/rlv-dan/Snap2HTML/issues/16 https://github.com/rlv-dan/Snap2HTML/issues/37 Please, allow us to help you find and fix this problem. Cheers.

santinoscripts commented 2 months ago

Anything? Not interested in fixing a program-breaking bug that renders it useless? This thing is easily reproducible.

rlv-dan commented 1 month ago

Unfortunately I have a life too. Even though I am actually interested in fixing this, interest does not automatically give me time to do so.

Good news though! Snap2html is open source. You can fix it yourself instead of having to wait for me to do it. Don't know how to code? Simply hire someone to do it for you!