Question about filter syntax

Get help for specific problems
Posts: 19
Joined: 26 Dec 2017

Illioc

Hi all,

I've some filters like this and they work fine:
*.mp4
*.mkv

Recently I wanted to also filter the temp (open) files of Office, so I added this:
~*.*
But it didn't work.

Now I've accidentally set:
*\~*.*
and it works.

Why in some case the simple syntax works and not in some other cases ?

Thanks for enlightening me !
User avatar
Posts: 2450
Joined: 22 Aug 2012

Plerry

The syntax ~*.* only refers to all file-names starting with a tilde (~) in the root of the left and/or right base location.
The syntax *\~*.* refers to all file-names starting with a tilde (~) anywhere in the left and/or right base location directory tree.

By the way: the syntax *\~* should also work.
Posts: 19
Joined: 26 Dec 2017

Illioc

Wow, I indeed didn't think about the "root" aspect.

The other files I filter (*.mp4 & *.mkv) are actually in the root of one of the folders, that's why this filter worked. :)

Thanks !