Pre-cache folder at startup?

If a folder has many items then there is a delay when you first click on folder. But after that it is fast because contents has been cached/scanned.

Is there a script command that will cache a folder? Then I can put a list of large folders I always open inside script. I'd rather have a long delay at dopus startup, than many small delays each time I open a folder.

A startup script could enumerate the folders you want cached in the background. But note the caching is performed by the file system, not Opus, so there's no guarantee the folder would stay cached indefinitely.

Dopus uses its own cache, not file system cache, correct?

So script can't tell dopus to cache a folder using dopus cache?

No, which is why I said the file system does it :slight_smile:

Thank you for response.

Can a command to add folder contents to dopus cache be added in future?

There is no general folder cache in Opus. We cache FTP and archives, but ordinary folders are left to the file system to cache (which it does a perfectly good job of).

would you post sample code of how to cache a folder?

I tried something like

DOpus.FSUtil.ReadDir("C:\Windows")

but it doesn't work

There's sample code in the default script that the script editor gives you:

You could also open the folder in a background tab of the default lister, which will mean it's ready and waiting when you want it.