File manager: programmatically select a folder

Hello,
Any code fragment to programmatically select a folder in the file manager (that is selected /highlighted) leading to listing files in the right hand side file manager list.
Any info will be useful.
Please advice. Grateful if it won’t be like the last request.
Thanks.

Hello @JohnDino,

I’m afraid this is a missed functionality on our part. At the moment we can suggest you the following workaround (requires File Manager customization): Code Snippet. Here we select a file with its id (path) on the component’s init. I have passed your request to the devteam so the ability to set selectedItem programmatically in easier manner could appear in one of our future releases. We will notify you about the updates regarding this feature.

Additionally, for the generation of the link to the file, you could use path-to-your-backend.com/direct?id=${encodeURIComponent(id)} where id is a file id (path). In the File Manager/Document Manager the same link is generated by directLink(id, download) method of the Backend service and is used for files opening or downloading.