Finding the current folder(s)

Started by ubacher, July 14, 2017, 11:21:03 AM

Previous topic - Next topic

ubacher

To do a search over the current folder(s) I need to specify the folder(s).

What is the best way to get the folder? Do I have to get the files in the selected folders and extract
the paths i.e folder(s) from the files?

Another idea: I can get the files and search over the list of files. This way I don't need the folder.

Mario

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

ubacher

The idlist is selectedFolders

This allows me to get all the files in the selected Folder.
What if there are no files in it and I need to get the folders name?

How to I get the selected Folders name?

Mario

This idlist contains the ids of all selected folders.
Use it with the /folders endpoint to get information about the folders.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ubacher

Ah, OK.
I guess the description in Imatch Documetation needs correcting. It says:
QuoteThis idlist contains all files in the active file window (before filters are applied).
This is basically the total set of files that is loaded into the scope before filters etc. are applied.

Mario

Copy&Paste error, sorry.
There was also a wrong statement in the documentation for ...files.total.
All updated now.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook