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.
From 6.1, 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.