Media & Folders View - Scope to sub folder

Started by banzai, May 13, 2023, 03:04:00 PM

Previous topic - Next topic

banzai

Hi there,

my images are in a folder like this: c:\a\b\c\d\e\my_images.

In the media & folders view, the complete path is shown as a tree, where folders "a" to "e" contain no images for the database (actually, I manually removed images in those folders from the database).

I'm not sure if this situation results from me starting with IMatch 3.x, but I would like to "hide" all the folders above "my_images", cause they are irrelevant for my database.

Is there some way to "scope in" the view of "Media & Folders" so that I only see a tree starting with "my_images"?

Ciao,   banzai

Mario

No. IMatch always shows the entire folder hierarchy, as it was added to the database.
If you only want the folder my_images in your database, I recommend to only add this folder, not all the oder a,b,c,d,e folders. IMatch can deal with that use case.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

banzai

Quote IMatch can deal with that use case.
True, did a short test with a new database.
But I wonder if I can somehow "fix" my current database. Can I remove folders "a" to "e" without removing the sub-folder "my_images"?
Cause I guess when I remove everything, I will lose information that is only stored in the database, like categories?

Mario

You can remove the a folder and use the option to "keep children".

Note that there is a bug in this function (fixed for IMatch 2023) that links the children of the removed folder to the top-level (under the Database node) while the correct behavior is to link it to the parent folder of the folder being removed, if there is one.

In your case, since the "a" folder is on the top-level, removing it will bring "b" to the top-level. Which is correct.
Then remove "b" from the database to bring c to the top level. Repeat for d and e until only my_folder remains in the database.

Make a backup copy of your database before doing this, just in case.
Don't accidentally confuse "Remove Folder" with "Delete Folder".
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

banzai

Ok, worked as intended, thanks.

But it took me some attempts before I dared to click "Ok" on the first remove dialog cause I couldn't find the "keep children" option. But after that another dialog shows up with that option. Perhaps merge those two dialogs into one (with an auto-selected checkbox for "keep children") for the next version, so it is more obvious for scared users like me :) Just a suggestion...

Mario

That's funny.
I've already did that while fixing the described issue for IMatch 2023 a while ago ;)
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook