Yuari
Documentation
Docs/DirectoryWatcher/DirectoryWatcher.OnDeleted

DirectoryWatcher.OnDeleted

Registers a callback invoked with the deleted file path.

Syntax

DirectoryWatcher.OnDeleted(watcher: any, callback: function) -> nil

Parameters

ParameterTypeDescription
watcheranyThe watcher value used by the call.
callbackfunctionThe callback invoked by the operation.

Returns

TypeDescription
nilThis function does not return a value.

Description

DirectoryWatcher.OnDeleted is part of the DirectoryWatcher library. Win32 directory monitoring for folders inside the Yuari workspace.

The operation is performed immediately using the arguments supplied at the call site.

Example

watcher:OnDeleted(function(path) print(path) end)

Notes

  • Only folders inside the Yuari workspace can be watched; stop watchers when they are no longer needed.