TABLE OF CONTENTS


Hunter/RefreshData [ Packages ]

[ Top ] [ Packages ]

FUNCTION

 Provide code to automatically refresh directory listing on changed files
 or directories inside

SOURCE

package RefreshData is

RefreshData/InotifyTask [ Tasks ]

[ Top ] [ RefreshData ] [ Tasks ]

FUNCTION

 Task to monitor changes on disk

SOURCE

   task InotifyTask is
      entry Start;
   end InotifyTask;

RefreshData/TemporaryStop [ Variables ]

[ Top ] [ RefreshData ] [ Variables ]

FUNCTION

 If true, temporary stop refreshing directory listing (mainly in trash).
 Default is false

SOURCE

   TemporaryStop: Boolean := False;

RefreshData/StartTimer [ Subprograms ]

[ Top ] [ RefreshData ] [ Subprograms ]

FUNCTION

 Start timer for refreshing current directory listing

SOURCE

   procedure StartTimer(Path: String := "");

RefreshData/UpdateWatch [ Subprograms ]

[ Top ] [ RefreshData ] [ Subprograms ]

FUNCTION

 Update inotify watch with new path to watch.

SOURCE

   procedure UpdateWatch(Path: String);

PARAMETERS

 Path - Full path to the directory which will be watched for changes.
>