Forum Discussion
vthomeschoolmom
5 years agoSuper Contributor
I can't answer the question as asked having never come across it. As a matter of habit, what I would do in script would be
- do the stuff that generates the download.
- check that the downloaded file exists.
- clean up (delete) the downloaded file.
Thus next run, the file does not have a counter appended to it.
One option. Hopefully someone can chime in on your question as asked.
- LinoTadros5 years agoCommunity Hero
The checking for a File existence with a wildcard is a bad practice.
As vthomeschoolmom said the right way to do this is to delete the file during each run after exists return true.
Cheers
-Lino
Related Content
- 4 years ago
- 4 years ago
- 6 years ago
Recent Discussions
- 2 days ago