INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Path Length Restriction and Unicode?  (Read 1460 times)

GHammer

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1930
  • Stereotypes are a real timesaver!
Path Length Restriction and Unicode?
« on: June 21, 2006, 10:16:11 pm »

I recall a few problems with too long paths.
A tool I use claims this:

"The 256 characters path limit is now GONE thanks to Unicode. The file and paths names can now be up to 32000 characters long."

If accurate seems to be something worth doing.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Path Length Restriction and Unicode?
« Reply #1 on: June 21, 2006, 11:33:11 pm »

That's only half true.

Windows itself (Explorer.exe, etc.) has all sorts of problems with files longer than MAX_PATH. (260 characters)

In fact, you need to trick Explorer to make a filename that exceeds MAX_PATH.

So, it's technically possible to make very-long filenames, but I'd argue it's not a real good idea if compatibility (even with Windows) is important to you.
Logged
Matt Ashland, JRiver Media Center

GHammer

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1930
  • Stereotypes are a real timesaver!
Re: Path Length Restriction and Unicode?
« Reply #2 on: June 21, 2006, 11:40:30 pm »

True enough.
Logged

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Path Length Restriction and Unicode?
« Reply #3 on: June 22, 2006, 03:14:23 am »

Need to cook up an expression that can flag [Filenames] over 250chars as danger items in need or a trim.
Logged
Pages: [1]   Go Up