Sign in Join
Wiki copytemporary

Revision 3 of 3, by WikiArchive on 11-4-2026. The page as it is now.

ATFileNotif

About

ATFileNotif is simple component which detects file change. It uses timer, timer checks are file props (file exists; file size; file age) changed or not. It calls OnChanged.

Example

Example of function which starts file watch:

pascal
procedure TfmMain.NotifyFile;
begin
  with ATFileNotif1 do
  begin
    Timer.Enabled:= False;
    Timer.Interval:= 1000;
    FileName:= edFileName.Text;
    Timer.Enabled:= True;
  end;
end;

Download

Github: https://github.com/Alexey-T/ATFileNotif-Lazarus

License

MPL 2.0 or LGPL.


From the Free Pascal wiki, page "ATFileNotif", as it stood on 2020-02-09 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.