Hacker News new | ask | show | jobs
by rgawdzik 4379 days ago
What percent of the node.js community will this effect?

What's the design reason for Windows tools to only have a max of 260 file path chars? If it's not the OS, but the tools he is using, why not use tools that work? Isn't this the tools bug?

Honestly, if he is doing web development, his life will be easier with a linux distro.

1 comments

>What's the design reason for Windows tools to only have a max of 260 file path chars?

So in C you can just say `char buff[MAX_PATH] = {0};` and not worry about heap allocation.

That's also the reason why it can't ever be extended - because MAX_PATH is compiled into every binary and you would create instant buffer overflow vulnerabilities in a lot of software.

It was a reasonably good idea at the time the decision was made.

Fair enough, makes sense from the C perspective.