Filesystem DataProvider is not working properly

Hello!
My files are not showing properly when using this Addon. Here is some code example.
Can someone please help me with this issue?

File rootFile = new File("C:/Example");
FilesystemData root = new FilesystemData(rootFile, false);
FilesystemDataProvider fileSystem = new FilesystemDataProvider(root);
Tree<File> tree = new Tree<>(fileSystem, File::getName);
tree.setDataProvider(fileSystem);
tree.setItemIconProvider(FileTypeResolver::getIcon);

Are you using the Vaadin 8 version?

Hello Tatu,

no I am using Vaadin 18 and this component https://vaadin.com/directory/component/tree.

My files are not showing properly when using this Addon

Could you describe in more detail what goes wrong, or add a screenshot perhaps?