Hi,
I'm not sure if this issue is really a bug, but I don't understand the reason for it:
I have file located in the following path:
d:\temp\example\folder1\folder2\file.txt
Now go to d:\temp\ and press ALT-F7, select Plugins-tab.
Enter
tc - path - contains - "example\folder1"
tc - directory - = - Yes
=> Start search
=> 1 directory found "d:\temp\example\folder1\folder2"
OK
Now enter
tc - path - contains - "example\folder1\folder2"
tc - directory - = - Yes
=> Start search
=> "no files found"
The directory is not found, if it is the last one in the current tree. Why?
ALT-F7->Plugin Search: Directory not found?
Moderators: white, Hacker, petermad, Stefan2
Sorry, my fault.
The correct definiton of tc.fullname is
I. if 'tc.ext" is empty:
tc.fullname := tc.name
II. if 'tc.ext' is not empty:
tc.fullname := tc.name+"."+tc.ext
If you want to search exactly for the directory "folder1\folder2\" you need something like
A small problem, because there is no [end with] operator.
Regex can help here:
or as alternative the plugin Filex
Regards
Holger
The correct definiton of tc.fullname is
I. if 'tc.ext" is empty:
tc.fullname := tc.name
II. if 'tc.ext' is not empty:
tc.fullname := tc.name+"."+tc.ext
If you want to search exactly for the directory "folder1\folder2\" you need something like
Code: Select all
tc.directory [=] Yes
&& tc.fullname [=] folder2
&& tc.path [ends with] \folder1\
Regex can help here:
Code: Select all
tc.directory [=] Yes
&& tc.fullname [=] folder2
&& tc.path [regex] (.*)\\folder1\\
Code: Select all
tc.directory [=] Yes
&& tc.fullname [=] folder2
&& filex.ParentDir [=] folder1
Holger