Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Tree FilesystemContainer smb
Following the example of the link: https://github.com/vaadin/book-examples/blob/master/src/com/vaadin/book/examples/datamodel/FilesystemContainerExample.java
which maps the contents of a folder in a tree, in my solution passed as new File command parameter an existing mapping on the local machine.
tree.setContainerDataSource (new FilesystemContainer (new File ("o:\\")))
On Windows machines work properly, however, on MacOS machines where there is no local mapping, need access this folder via smb or cifs.
But the new File command does not accept address smb://192.168.1.1/folder
I've tried using JCIFS-1.1.11.jar library that authenticates and finds the folder
However can not assign the SmbFile type as the root for FilesystemContainer and consequently do not have a DataSource for the tree.
Does anyone have any idea of using a smb mapping?
You may have to first map the volume, and then serarch under /Volumes
You can look at the second response to this question
http://stackoverflow.com/questions/36339504/convert-smbfile-to-java-io-file