I need to delete a folder with over 30,000 images. I have a .nomedia file inside to prevent scanning all the time. Trying to delete all files, I have to check the file name for each file. If I skip this check, the ".nomedia" file will be deleted. If this happens before the images - this will lead to a big loss in performance. Any idea how to solve this?
UPDATE:
Does anyone know how to hide images from scanning without using .nomedia? I can save files with fake extensions, but I'm not sure if this works.
Update:
In fact, the test shows me this result: checking the name makes deletion 50% slower. The problem is not in the control code, but in the system scan folder: (
source share