Delete files with wildcard or loop through files?

Hello,

My app is generating temp files that I upload at times while it is used. Is there a way I can loop through all files with a wild card such as all img54*.jpg files in the documents directory and delete each one? I know other software can use that folder but the wild card I will be using will be unique to my program. I thought of deleting after I am done with them but I still need to do this each time I run the app so it cleans up any left over files.

Thanks

Warren

Hi Warren,

Can you put these files into a subdirectory “per session” and then delete the entire directory using LFS? Or place them in the “Caches” directory? That’s a bit more reliable than the Temporary directory, but not as reliable as Documents…

Brent

Hi Warren,

Can you put these files into a subdirectory “per session” and then delete the entire directory using LFS? Or place them in the “Caches” directory? That’s a bit more reliable than the Temporary directory, but not as reliable as Documents…

Brent