Detect Hierarchies

Started by Darius1968, September 13, 2014, 07:00:23 AM

Previous topic - Next topic

Darius1968

I've set up a data driven category with this tag, "photools.com::IMatch\101400\file.foldername\0".  It works fine as is.  However, if I enable "Detect Hierarchies" to allow the different levels of my folder structure to be represented accordingly, then I get no results returned.  What am I doing wrong? 

Mario

Works here. Which hierarchy separator character did you enter?
Try \
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

I used exactly the same separator you suggest, \.  Again, if I set Detect Hierarchies to No, everything works again, and as soon as I set it to Yes, no results returned again!  Could there be another setting that is conflicting here? 

Mario

I just used the defaults. Detect hierarchies to Yes, separator \



[attachment deleted by admin]
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

I finally discovered what is causing the problem.  I entered "E:\\_01\\_Backups\\_201309 \(C Drive\)\\_Social Networking\\FetLife\\_Profiles" into the Filter Pattern of Replace and Filter.  This, I did so that only sub folders of "E:\\_01\\_Backups\\_201309 \(C Drive\)\\_Social Networking\\FetLife\\_Profiles" or that folder itself would be considered.  With this said, however, the Detect Hierarchies will work if I remove the filter pattern.  If I insist on having the text string entered in the filter pattern, it works without detect hierarchies, but not with it activated.  Could this be a bug, or have I done something wrong? 

Mario

That's new information. We're running in circles, waisting time.

You split your folder names into levels. So

c:\images\beach

is split into three elements:

c:\
images
beach


now you apply a filter like

c:\\images\\beach

and this of course does not match any of the "c:\", "images", "beach" you have created by splitting the folder name into individual elements.

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

I'm so sorry that I'm not comprehending this language!  By default, the detect hierarchies will cause the data driven category to enumerate the folder structure on my hard drive just like it would be displayed in Windows Explorer or in IMatch's Media & Folders View, starting at the top node E:\.  All I want to do is to have this data driven category enumerate the folder structure that is on my hard drive, but not from the top, but rater starting at a particular folder.  In this case, the folder is at E:\_01\_Backups\_201309 (C Drive)\_Social Networking\FetLife\_Profiles.  So what do I do to have IMatch effect what I want to have happen? 

Mario

This is not a problem of language. It's just that you are trying to do something really complicated, and I'm not sure that data-driven categories can do what you want. They were never designed to duplicate the file system folder hierarchy.

When you split the hierarchies, IMatch applies the filter to each element resulting from that split. So it sees:

E:
_01
_Backups
_201309 (C Drive)
_Social Networking
FetLife
_Profiles

This is why your filter cannot work. You could filter for "_Social Networking" but that will not remove the elements above that, or below.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook