Skip to content

FileExplorerRootMenuComponentConstructorParams.shouldPresentRootAsFolder?

FileExplorerRootMenuComponentConstructorParams › shouldPresentRootAsFolder?

Type: boolean

Whether the root is presented as an ordinary folder while its menu is built, so that Obsidian and other plugins add the items they add to any folder. The items that must not act on the root (rename, delete, move, make a copy and search in folder) are removed again before the menu is shown. On the vault name, the root's folder menu then replaces Obsidian's vault menu. It holds while any subscriber asks for it.