DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Up to the NTFS file system 32767 characters limit...  (Read 6,009 times)

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Up to the NTFS file system 32767 characters limit...
« on: May 17, 2007, 02:09 AM »
NTFSpath : Has anybody used that ? Could be an interesting tool.

http://libmaster.com/ntfspath.php

The LibMaster.com NTFSpath library (0.1 beta)

As you know length of path in NTFS file system may reach 32767 characters but most of functions in Windows API permit a maximum path length 260 characters.

The LibMaster.com NTFSpath library allows to work with a maximum path length 32,767 characters which is allowed in NTFS.

It contains most useful functions for working with path strings and NTFS file system.

Both of separators "/" and "\" are equivalent for all of the functions in the library.

Also no one of the functions do not trim spaces before the begin and after the end of an input string because NTFS allows space characters at the begin and at the end of filename or directory name.

This library used in The Libmaster.com TreeWalk library.

The archive with the library have an application with examples of using for the all functions in the library.

You can use this library for free.
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Up to the NTFS file system 32767 characters limit...
« Reply #1 on: May 17, 2007, 04:24 AM »
Sounds very cool. I'll have to check that out.  Thanks for posting it.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Re: Up to the NTFS file system 32767 characters limit...
« Reply #2 on: May 19, 2007, 07:53 AM »
Sounds very cool. I'll have to check that out.  Thanks for posting it.

I haven't got the time to check it out yet.

The 260 characters limit has always bothered me since I like long file names (i put lots of keywords -- tags --in my file names, BUT I have very simple directory structures : perfect for FARR and desktop search tools...). The problem is that I always fear that i'll do something stupid with my directory structure at somepoint, and access to my files would become... difficult.
Anyway...

Did you try NTFSpath?
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

Original address: https://www.donationcoder.com/forum/index.php?topic=8569.0