I use Mac OS。I hope to detect the existence of this file in the download directory, if there is no normal download, if there is prompted to re-download and open the directory to choose from.
I use two promises, which are used to detect the existence of this file on the disk, and the prompt exists to allow users to choose to re-download or open.
In the end it did not work, but the main thread’s log is the same as expected. I wrote a simple demo for testing:
thanks very much