Those scans now can't be just scans and the results must another time be filtered.
Maybe to clarify this better :
Say that such a command looks like this :
scan for *.jpg /s
and what it means is that in all sub folders from where I am, I am looking for picture files with extension .jpg.
Files are found, but they only comprise of ._ sh*t and I must fiilter them out afterwards. Meanwhile I had a result like "hey, this folder structure contains coverart !". Yea ? well, not if it only comprises of files starting with ._ because then it is all fake. Besides, if I want to show such a file as an image, the lot runs stuck and errors out.
This scan command is one command only (with quite some processing internally) but the sorting out of what's really in there may contain a 20 fold of this one command and a lot of (il)logic to apply.
Even worse is scanning for music files, because if a music file is detected, it is regarded to be, well, music, and it must list as such. Not when it is all fake.
The whole lot can also be compared to Windows making such a thumbs.db file (which occurs a 1000 times in the program because it is an exeption to all other files because it is fake/dummy/Windows generated) with the notice that no matter you delete all image files, this thumbs.db file stays. The ._ files are worse regarding this, because they still imply an image file to be there (you deleted all images files) while nothing is in there for real, BUT the ones in there all fail (because they are no image files at all).
I found an example in the code for you which pretty much (coincidentally) covers what I was just talking about. Without adjustment this snippet of code will go wrong in about each line of code;
The check for the discovered file being a directory (folder) must be adjusted because complete folders with ._ exist and nothing of interest is in there. However, once such a folder is dragged along in the further active code, all goes wrong (I know).
The check whether it is a Music File goes wrong, because any ._ really is not that at all.
While we are dragging / dropping files here and the Thumbs.db is illegal to copy (it contains meta data for its specific folder while I am not copying the folder but individual files), for the ._ files will count the same but even worse because they don't apply to Windows. Anyway, allowing these files to pass on, als all starts to spread as a virus (I think I used the phenomenon in this topic somewhere).
Notice though that what you look at is one of the 20 or so means to put files into the Playlist Area so already that requires more attention than just one place to adjust. This, while adjusting this small piece of cose only, may take a few hours because of the one "scan" command not being sufficiebt any more (this is actually the My.Computer.FileSystem.GetFiles piece of code).
So you see, I hate it a bit when something on an *other* OS suddenly starts to imply problems. But isn't that Apple.
Peter