DirectoryWatcher.GetPath
Returns the workspace-relative path being watched.
Syntax
DirectoryWatcher.GetPath(watcher: any) -> string
Parameters
| Parameter | Type | Description |
|---|---|---|
watcher | any | The watcher value used by the call. |
Returns
| Type | Description |
|---|---|
string | The workspace-relative path being watched |
Description
DirectoryWatcher.GetPath is part of the DirectoryWatcher library. Win32 directory monitoring for folders inside the Yuari workspace.
The call is read-only: it resolves the current value when invoked and does not change the underlying state.
Example
print(watcher:GetPath())
Notes
- Only folders inside the Yuari workspace can be watched; stop watchers when they are no longer needed.