TABLE OF CONTENTS
- 1. Hunter/RefreshData
- 1.1. RefreshData/InotifyTask
- 1.2. RefreshData/Source_Id
- 1.3. RefreshData/TemporaryStop
- 1.4. RefreshData/CheckItems
- 1.5. RefreshData/StartTimer
- 1.6. RefreshData/UpdateItem
- 1.7. RefreshData/UpdateWatch
Hunter/RefreshData [ 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.