Hi, I would like to count all files on my CacheDirectory plus I want to modify it, where I can delete a file if it is not detected on my code.
like for example:
CachesDirectory contains
1.txt
2.txt
3.txt
In my supposed code I have a table named as “a” like this:
a ={1,2}
now, my plan is supposed to be in a loop,
if anything that is not in a has been detected in CachesDirectory, delete it, if not keep it.
thanks in advance I hope this is possible