Exists()

we just discovered, that the Exists nodes report wrong states when the file in question is e.g. removed during runtime.

please see attached patch.

bonus question: how can we fix the hacky framedelay in the MyExistsProcess?

Exists.vl (37.5 KB)

Idk if it is any better, but instead of the framedelay you can also delay the observable. Unfortunately this still doesn’t solve the first frame issue.
Came up with this workaround:

Exists_b.vl (42.7 KB)

1 Like

ha, i had a similar idea, which looks like so:


Exists.vl (53.1 KB)

i like that solution a bit more, because it avoids mainloop logic.

also has the first frame thing. i think this issue will only go away if we had a holdlatest equivalent, that waits for the result like Task.Wait or so. I thought the BlockingReceiver would do so, but i don’t get how it should be used.

1 Like

do the original Exist nodes work when you use a Refresh [IO.Path] right before them?

wohoo, that was the hint i waited for, thanks!

Should those two have the refresh integrated as well?

1 Like

Very philosophical thread… Do we exist?