How to track changes

This topic describes hoe to track changes made to file and free disk space.

File changes

To be notified whenever there is a change in the file system, use RFs::NotifyChange(). This is better than having to poll regularly.

Use the TOpenFileScan class to find out which files are open, and the thread id of the program that has them open. This is useful for programs such as shells to be able to highlight files that are presently open. It is also useful for backup programs, which may need to close or suspend the owning program before doing a backup.

Free disk space changes

Clients can use RFs::NotifyDiskSpace() to ask that they be notified when free disk space on a drive crosses a client defined threshold value. This means that a client is notified if free disk space either increases above the threshold value or decreases below that value.