[fpc-pascal] Watching for file change

Henry Vermaak henry.vermaak at gmail.com
Fri Apr 11 21:53:19 CEST 2014


On 11 Apr 2014 20:07, "Krzysztof" <dibo20 at wp.pl> wrote:
>
> Hi,
>
> Does FPC have some file watching solution? I need this only for linux.
> I need notifications:
> - File/folder changed / removed / added in watched directory. I have
> idea how to do this in thread loop but maybe FPC has OS solution

You can use the inotify* functions in linux unit. See the man pages or
Wikipedia for how they work.

Henry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140411/79000d32/attachment.html>


More information about the fpc-pascal mailing list