I have to delete folder with more than 30000 images. I have '.nomedia' file inside to prevent scanning all the time. Trying to delete all files I have to check file name for every file. If I miss this check - '.nomedia' file will be deleted. If this happens before images - this will cause great performance loss. Any idea how to solve this?
UPDATE:
Does anybody know way to hide images from scanning without use '.nomedia'? I can save files with fake extensions, but I'm not sure is this working.
Update:
Actually test shows me this result: Check for name makes deleting about 50% slower. Problem is not in check code but in system scanning folder :(