Sign in Join

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

Mailing lists / fpc-pascal / 2007-08

extracting file attributes

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

Is there a x-platform file attributes function in the RTL? I'm creating a file grid component in fpGUI and need to extract some information about each file. Info like: Size, Attributes (win32) or Mode (linux), Mod Date, Group, Owner, Is symbolic link, etc..

I can abstract those parts to be implemented in each platform, but don't want to reinvent the wheel when they already exist in RTL.

Regards,
- Graeme -

Graeme Geldenhuys
to Graeme Geldenhuys

Sorry, I'm being stupid!!! TSearchRec gives me everything I need. How did I miss that! :)

Graeme.

Graeme Geldenhuys wrote 13 lines
Hi, Is there a x-platform file attributes function in the RTL? I'm creating a file grid component in fpGUI and need to extract some information about each file. Info like: Size, Attributes (win32) or Mode (linux), Mod Date, Group, Owner, Is symbolic link, etc.. I can abstract those parts to be implemented in each platform, but don't want to reinvent the wheel when they already exist in RTL. Regards, - Graeme -