Can't get setSelectedFile to work in DirectoryContentsDisplayComponent with sub-directories

i’ve got a component which subclasses FileBrowserComponent and uses a FileTreeComponent. i want to programmatically change the selected file via setSelectedFile - i can do this if the file is in the root of the initial directory, but if it’s in a sub-directory this doesn’t work.

i’ve also tried going through the FileTreeComponent to access its DirectoryContentsList. this only shows the root directory as well.

i couldn’t find anything in the docs about this - is this possible without hacking all of these classes?

1 Like

I will raise this topic. setSelectedFile doesn’t work for me either. How to use it correctly?