Problem configuring Include under Filter

Get help for specific problems
Posts: 10
Joined: 25 Nov 2020

comprev

I'm trying to copy *.mp3 and Folder.jpg files. I can set Include to *.mp3 and I get just the mp3 files. However, if I set include to

*.mp3
Folder.jpg

The Folder.jpg files don't show up. I'm not sure about the mp3 files, since they've already been copied and are up to date (i.e. I'm trying to add the Folder.jpg files to the files copied). If I set Include to *, then I get all the mp3 files (yes, currently none since they're up to date), AlbumArt*.jpg, and Folder.jpg files showing. I can add AlbumArt* to the Exclude files and just use * in Include and it does what I want. However, why doesn't it work when I specify the 2 lines as indicated above? In the Help page and the Show Examples link on the tab, I can only find examples for excluded files.
User avatar
Posts: 2947
Joined: 22 Aug 2012

Plerry

Your present 1st Include Filter rule "*.mp3" will include all *.mp3 files anywhere in the left and right base location or any if its (sub)folders.
Your present 2nd Include Filter rule "Folder.jpg" (a confusing name, naming a file "Folder" ...) will only include a file "Folder.jpg" located in the left and right base location, not in any of its (sub)folders.

If you have multiple Folder.jpg files, that you want to include all, you can change your 2nd Include Filter rule into "*\Folder.jpg"

If you want to include a single, specific file called "Folder.jpg" located in one the base location's (sub)folders, you should change your 2nd Include Filter rule into "[full-path-to-said-file,relative_to_the base location]\Folder.jpg".
If the path to said file is C:\\FolderA\FolderB\FolderC\Folder.jpg, and your base location is C:\\FolderA, your 2nd Include Filter rule should thus read "\FolderB\FolderC\Folder.jpg". A simple way to achieve this is to change your Include Filter into "*" and run a Compare, and in the Compare result window select said Folder.jpg file, right click and via the context menu add the specific file to the Include Filter (and afterwards manually add *.mp3 to the Include Filter).
Posts: 10
Joined: 25 Nov 2020

comprev

Thanks Plerry. I just wasn't thinking. I do as you suggest in the Exclude list, so I don't know why I didn't do it in the Include list.

As far as the name of the file, it's a Microsoft name. It's created by Microsoft's Media Player on Windows.
Posts: 10
Joined: 25 Nov 2020

comprev

Just a quick follow up.

I understand the *\Folder.jpg, but then why does just *.mp3 get files from the subfolders instead of having to use *\*.mp3?
User avatar
Posts: 2947
Joined: 22 Aug 2012

Plerry

The "*" wildcard is eager and stands for any number (including 0) of arbitrary characters, including one or more "\"s.
So, "*.mp3" will include all mp3-files in your base location and/or any of its (sub)folders.

If would only want to include mp3-files in (sub)folders and not in the root of your base location, you could include "\*\*.mp3".
In your "*\*.mp3" the first "*" could be empty and thus could be equivalent to "\*.mp3", which is equivalent to "*.mp3" and would also include base folder mp3-files.
Posts: 10
Joined: 25 Nov 2020

comprev

Thanks Plerry. I can follow that.