Forum Discussion
vthomeschoolmom
6 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.
- LinoTadros6 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
- 9 years ago
Recent Discussions
- 21 hours ago
- 21 hours ago
- 5 days ago