Tree files update in obsidian?

53 Views Asked by At

I'm working on developing a plugin for Obsidian and have encountered an issue. When I create a folder named 'oo-soso', it is successfully created and visible in the file tree. However, when I add another folder, 'ssss-soso' (as shown in the attached image), the 'oo-soso' folder disappears from the file tree. Interestingly, it can still be found using the system file explorer.

Can anyone advise on how to refresh or update the file tree after adding a new folder? Is there an API or specific function that can resolve this?

enter image description here

I expect that no folder will be hidden after it is created.

0

There are 0 best solutions below