Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-01

findfirst with ':' names

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Micha Nelissen

Hi,

Does findfirst not return filenames with a ':' character in them properly? I only get the last part of the filename, the part after the ':'. Try listing /sys/bus/pci/devices with findfirst on a Linux system.

FindFirst('/sys/bus/pci/devices/*', faAnyFile, Info); etc...

Micha

Reply by email

Jonas Maebe
to Micha Nelissen
Micha Nelissen wrote
Does findfirst not return filenames with a ':' character in them properly? I only get the last part of the filename, the part after the ':'. Try listing /sys/bus/pci/devices with findfirst on a Linux system.

Almost all rtl filename routines treat ':' and '\' wrongly on *nix systems (both are usually treated as some sort of separator).

Jonas

Reply by email