Having a script wait for a file to appear

Example script which holds its execution until a certain file is found at a given location. Checking is performed on the main thread at given intervals.
Monday, September 14, 2020