Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long file names issue (> 255 characters) #16

Open
kotek-glupotek opened this issue Apr 23, 2020 · 2 comments
Open

Long file names issue (> 255 characters) #16

kotek-glupotek opened this issue Apr 23, 2020 · 2 comments

Comments

@kotek-glupotek
Copy link

When Snap2HTML encounters folders and files where the total length of the file name including absolute path exceeds 255 characters, it either does not display file attributes (size and timestamp) and/or stops the output to the html file if the folder name breaks that limit.

This could be a limit of an old MS Windows API and even most of Microsoft apps including Word, Excel etc. cannot handle longer names even though there are newer API calls supporting much longer file names. There are some apps capable of using nested folder names > 255 characters, e.g. WinRar, Total Commander, AllDup etc.

I experienced this on my NAS, where the file structure is deeply nested but I was able to reproduce it on local Windows 10 drive too. I'm attaching a sample folder structure with nested folders/files exceeding 255 chars to illustrate the issue; the files are all blank (0 bytes).

Snap2HTML.zip

@Left-Handed-Cat
Copy link

I can confirm that, I noticed exactly the same behavior: program stops the crawling process suddenly. After investigation i figured out, that the last entry in the file list (html code) exceeds the 255 limit. I'm interested in a solution, too.

@crasher32
Copy link

I might meet the same problem,sincerely hope for a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants