1. Euphoria's "dir()" command and name length limit?

Hello there,


There was talk in this forum about Eu's dir command returning only
names that are 100 or less characters in length, but i tested it
yesterday (v2.4) and even that worked fine on the Win platform
for names with more than 100 characters (140 or so chars).
So now, im wondering what was this talk about, since it appears to
work just fine (win XP / .exw files).  Was it maybe in dos only
using .ex files?


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » topic index » view message » categorize

2. Re: Euphoria's "dir()" command and name length limit?

> There was talk in this forum about Eu's dir command returning only
> names that are 100 or less characters in length, but i tested it
> yesterday (v2.4) and even that worked fine on the Win platform
> for names with more than 100 characters (140 or so chars).
> So now, im wondering what was this talk about, since it appears to
> work just fine (win XP / .exw files).  Was it maybe in dos only
> using .ex files?

The corrent limit is 255 characters for the entire path name (from
drive letter to extension) in Windows, and in DOS, stil 255 but only
8.3 file name lengths. If you use my win_dir() routine, which uses
Unicode (only available in WinNT/2k/XP) you expand this capacity to
over 32,000 characters, with a 255 character component length. A
'component' is any piece of the path between two slashes, or the file
name itself.

Yes, you may have all the 100+ character filenames you want and still
use dir(), but if you try putting it into a deep path or a path with
long folder names, you'll run into an issue when the whole path
exceeds 255 characters.

My win_dir() routine may be found in the Archive. Its also *much*
faster than dir().

~Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria's "dir()" command and name length limit?

Greg Haberek wrote:

> The corrent limit is 255 characters for the entire path name (from
> drive letter to extension) in Windows, and in DOS, stil 255 but only
> 8.3 file name lengths. If you use my win_dir() routine, which uses
> Unicode (only available in WinNT/2k/XP) you expand this capacity to
> over 32,000 characters, with a 255 character component length. A
> 'component' is any piece of the path between two slashes, or the file
> name itself.

> Yes, you may have all the 100+ character filenames you want and still
> use dir(), but if you try putting it into a deep path or a path with
> long folder names, you'll run into an issue when the whole path
> exceeds 255 characters.

> My win_dir() routine may be found in the Archive. Its also *much*
> faster than dir().

> ~Greg

It's unfortunate that your library only works on Windows. Nevertheless all my
Windows Euphoria programs, that used dir() and walk_dir(), now use your library
instead. In addition, I found it to work properly with the Borland C++Builder
v5.5 compiler.


Regards,
Vincent

new topic     » goto parent     » topic index » view message » categorize

4. Re: Euphoria's "dir()" command and name length limit?

Greg Haberek wrote:
> 
> > There was talk in this forum about Eu's dir command returning only
> > names that are 100 or less characters in length, but i tested it
> > yesterday (v2.4) and even that worked fine on the Win platform
> > for names with more than 100 characters (140 or so chars).
> > So now, im wondering what was this talk about, since it appears to
> > work just fine (win XP / .exw files).  Was it maybe in dos only
> > using .ex files?
> 
> The corrent limit is 255 characters for the entire path name (from
> drive letter to extension) in Windows, and in DOS, stil 255 but only
> 8.3 file name lengths. If you use my win_dir() routine, which uses
> Unicode (only available in WinNT/2k/XP) you expand this capacity to
> over 32,000 characters, with a 255 character component length. A
> 'component' is any piece of the path between two slashes, or the file
> name itself.
> 
> Yes, you may have all the 100+ character filenames you want and still
> use dir(), but if you try putting it into a deep path or a path with
> long folder names, you'll run into an issue when the whole path
> exceeds 255 characters.
> 
> My win_dir() routine may be found in the Archive. Its also *much*
> faster than dir().
> 
> ~Greg
> 
> 

Hi there Greg,

Ok then i'll have to try it :)

Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu