Does Dialog.WatchDir() can't detect a file deletion?

I just noticed that when using Dialog.WatchDir() for a single file, it doesn't detect when that file is deleted.
Example: Using the same script from this thread :

If you delete any of the watched files, no event gets triggered.

We'll make that work in the next beta. Note that you need to include the f flag.

(Currently, you have to monitor the parent directory, not the file itself. In fact, this is how it has to work internally, but we'll do the work on our side so scripts don't have to.)

1 Like