AddFunctionFileChange(
LPVOID:lpFuncData,
BOOL:fIsDest,
int:iType,
LPTSTR:lpszFile
)
→ void
| OPUSFILECHANGE_CREATE | New file created |
| OPUSFILECHANGE_DELETE | File deleted |
| OPUSFILECHANGE_CHANGE | Existing file or folder changed (eg size, date) |
| OPUSFILECHANGE_MAKEDIR | New folder created |
| OPUSFILECHANGE_REMDIR | Folder deleted |
| OPUSFILECHANGE_REFRESH | Re-read folder when function completes |
The AddFunctionFileChange function lets you notify Opus of changes to files within your plugin's namespace.
Because your plugin completely handles a batch-mode operation itself, you need to use this function to inform Opus of any changes to your namespace. If you don't want to track individual file or folder changes you can send the OPUSFILECHANGE_REFRESH notification, which will cause the currently displayed folder to be automatically re-read once the function is complete.