Sign in Join

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

Mailing lists / fpc-pascal / 2010-10

File or Directory change notification component

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

Does the RTL or FCL have a file or directory change notification component. I'm about to write one, but if one already exists, it could save me some time. I looked through the FCL directory but couldn't find anything obvious.

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

Reply by email

Fantomas
to Graeme Geldenhuys

Hello, Graeme!

Does the RTL or FCL have a file or directory change notification component. I'm about to write one, but if one already exists, it could save me some time. I looked through the FCL directory but couldn't find anything obvious.

AFAIK, there are no components like the one you mentioned. Only units importing Windows API functions.

Best regards, Fantomas

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote
None exist, but I'm interested in having it in the FCL.

OK, thanks. I'll continue the implementation then. I'm planing on making it flexible, so the backend can be swapped out with other implementations - similar to what one can do with fpTimer. I'll implement a basic polling backend, which will suffice for my needs and work on all platforms. Others are welcome to implement OS specific backends like using the Windows API, Linux inotify API or FreeBSD/MacOS kqueue API.

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

Reply by email