[fpc-pascal] Watching for file change
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Fri Apr 11 22:38:53 CEST 2014
waldo kitty wrote:
> On 4/11/2014 3:06 PM, Krzysztof 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
>
> i'm interested in this, as well... i have an app in perl that i'm
> considering rewriting in FPC... in that app, i had to specifically grab
> the attributes of the files the app watches and compare those values to
> previously stored values...
I believe Linux has dnotify, inotify and possibly File Alteration
Monitor, but that these are version-dependant and extremely dependant
on distro policies. Because of this uncertainty it would be necessary to
load the support libraries dynamically.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list