Is there an option in DOpus12 to export the folder tree (not sub-folders or files) to a text file? Perhaps there is an option to search just directory folders without scanning all sub-folders and files, either option would help save time.
I have thousands of photos that are currently stored on my NAS. If I want to search for a particular image in Snowdonia DOpus will search every single folder, sub-folder, and file, which is fine, but when you have to make multiple searches it consumes a lot of time. To speed up the process I use PowerShell to export all folder names to a text file, searching a text file is very quick by comparison.
Firstly, can DOpus search for folders named Snowdonia instead of looking through every sub-folder/file to speed up the search process. If not, can I execute a command to export my folder structure to a text file, or should I carry on using PowerShell?
This is a copy of my folder structure which I can export to a text file with PowerShell.
One solution might be to go to enter Flat View. This will take a bit depending on how big the folder is. Once its done reading all the sub folders you can use the Filter Bar (press *) to find the files you want. Filtering is done in memory so it is very fast, and you can find a few files quickly. It can help to lock the Tab once its in Flat View so you don't accidental navigate away.
Ideally you don't want to read all of Z: though. Another solution might be to first use search to find all the files in the Snowdonia folders then again use the Filter Bar to find your specific files. The search could be location = *Snowdonia*, but that will still scan all of Z: could be slow again.
In the Advanced Search the Subfolder filter will help by skipping folders that you are not interested in, speeding up the search.
That search should find all files in Snowdonia folders. Skipping folders that don't match * Snowdonia. It should be pretty quick. You can then lock the Lister and use the Filter Bar to find the files you want.
If the searches are by filename/path then only the first search (after some time since any previous ones) is usually slow, since Windows caches recently read directory listings in spare memory and re-reading them for a second search is usually nearly instant.
Turning on Flat View, or exporting the file list to a text file, will be similar to the first search since they also require all the directory listings be read.
The text file may be useful if the list does not change often and you want the first search to be faster, but shouldn't make much difference for multiple searches after the first one, unless memory is very low and/or the search is not only on names/paths (but then a list of names/paths would not work either).
Going back to the question, Tools > Print / Export Folder can be used to create a text listing of things in and/or below the current folder. The CSV output format is best if your PowerShell script is OK with csv data, since it does not have to worry about long names and column lengths.
Using the Windows Search indexing is another option, or alternatives such as Everything. (Opus only has integrated support for Windows Search but there's a big thread on using Everything and Opus together if you want to try an alternative.)