Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsDirectoryWatcherMBS class.

WindowsDirectoryWatcherMBS.AddDirectory(path as folderitem, Recursive as boolean, Flags as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Folder Change Watching MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Schedules a directory for watching.

path: Path to folder to watch.
Recursive: Whether to watch subdirectories.
Flags: What to watch for. Please combine kNotifyChange* constants with bitwiseOr.

Returns false on error and true on success.
You can add several directories to a watcher.

See also:

Some examples using this method:

WindowsDirectoryWatcherMBS.AddDirectory(path as string, Recursive as boolean, Flags as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Folder Change Watching MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Schedules a directory for watching.

path: Path to folder to watch.
Recursive: Whether to watch subdirectories.
Flags: What to watch for. Please combine kNotifyChange* constants with bitwiseOr.

Returns false on error and true on success.
You can add several directories to a watcher.

See also:

WindowsDirectoryWatcherMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Folder Change Watching MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The constructor.

WindowsDirectoryWatcherMBS.NextChange as WindowsDirectoryChangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Folder Change Watching MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries changes.

Call this method in a loop in a timer until it returns nil.
This way you can get all the changes.

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...