Reply to post: Re: @Just Enough

Windows 10: Happy with Anniversary Update?

Paul Crawford Silver badge

Re: @Just Enough

From a human perspective - no, its not.

But typically *NIX systems had MAX_PATH / PATH_MAX set to 1024 or even more and no doubt there are cases where that has been used to go over 256 leading to porting issues if you want to run *NIX tools on Windows (as MS are trying to encourage now).

And just when you thought that was a simple fixed value - no! It is not because Linux, for example, allows you to mount various different file systems and even files systems mounted from deeper within another, and as each of those file systems (ext4, NTFS, FAT32 and many more) could all have differing limitations on path and file name lengths, the total is not a simple constant.

So if you start a project, try to keep to 256 if you can but don't had-code it.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon