[fpc-devel] Re: FindFile / FindNext does work with > 253 character length files

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Mar 14 12:43:07 CET 2008


On 14/03/2008, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> Hi,
>
>  Under Linux the maximum file length is 255 character. Gnome's Nautilus
>  allows that length. Any larger and Nautilus or a terminal command like
>  'cp' complains.
>
>  FindFile / FindNext however seems to have a 253 character limit!  Why
>  the difference when the OS can support up to 255 characters?


I forgot to attach my applications output. In the first run, the file
is 253 characters long. FindFile/FindNext found 15 entries, which is
correct. I then changed the file to be 254 characters long and now
FindFile/FindNext exits as soon as it gets to that file.

graemeg at graemeg:filegrid$ ./filegrid
found: ..
found: .svn
found: ooooooooooooooooooooooooooeeeeeeeeeeeeeeeeeeeeeeeuuuuuuuuuuuuuuuaaaaaaaaaaaaaaaaaaaaaaaoooooooooooooooooooooooooeeeeeeeeeeeeeeeeeeeuuuuuuuuuuuuuuuuuuuuuuueeeeeeeeeeeepppppppppppppppppppppphhhhhhhhhhhhhhhhhhhhhhhhhtttttttttttttttsssssssssssssaaaaaaa.txt
found: units
found: test_link
found: filegrid_diff.patch
found: .
found: filegrid.lpr
found: filegrid.lps
found: filegrid.compiled
found: extrafpc.cfg
found: filegrid.lpi
found: filegrid
found: .I_should_be_hidden
found: t2
graemeg at graemeg:filegrid$

[... increment file by one extra character...]

graemeg at graemeg:filegrid$ ./filegrid
found: ..
found: .svn
found: units
found: test_link
found: filegrid_diff.patch
found: .
found: filegrid.lpr
found: filegrid.lps
found: filegrid.compiled
found: extrafpc.cfg
graemeg at graemeg:filegrid$


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list