Yuari
Documentation
Docs/DirectoryWatcher/DirectoryWatcher.GetPath

DirectoryWatcher.GetPath

Returns the workspace-relative path being watched.

Syntax

DirectoryWatcher.GetPath(watcher: any) -> string

Parameters

ParameterTypeDescription
watcheranyThe watcher value used by the call.

Returns

TypeDescription
stringThe 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.