Hi,
> I was trying to create a folder filter that ignores any folders named
> "planets". According to the documentation, you must precede all folder
> names with a \\ and files with \. In addition, the documentation states
> the need for these slashes to differentiate between folder and
> filenames. I'm confused as to why you need the slashes, since the *f:*
> and *d:* obviously makes the differences clear. When I tried out my
> filter the first time, I did the following:
>
> d: \\^planets$
>
> This didn't work, and after a bit of trial and error I found that the
> following works:
>
> d: ^planets$
>
> So, the \\ wasn't needed after all? Could you please explain the true
> need for \\ at the beginning of a directory name?
agreed, that can be confusing. The reason is filtering code sees the
folder name as "\foldername" with preceeding backslash. Maybe that has
been confusing me too way back when writing that documentation. But as
it is just a string to match, you can aswell match it with "name" (which
of course matches "\foldername".
My version of the manual doesn't say filename filters must begin with
"\.". And there are even examples of filters not starting with it. "\."
is just matcing dot before the extension.
I'll update the documentation, thanks for pointing out this issue!
Regards,
Kimmo
|