Open File list from vpn

14 views
Skip to first unread message

Tobias Semmet

unread,
Nov 19, 2019, 6:04:29 AM11/19/19
to CodenameOne Discussions
Hi, I want to open the file list of a shared dirctory on my server.

is it possible with codename on, an if yes, how can i do this ?

Thanks
Tobias

Shai Almog

unread,
Nov 19, 2019, 8:46:46 PM11/19/19
to CodenameOne Discussions
Hi,
if the phone is connected via VPN already you might be able to use the file chooser cn1lib to pick a file from that directory.

Tobias Semmet

unread,
Nov 20, 2019, 9:10:51 AM11/20/19
to CodenameOne Discussions
Hi,

I currently connected via VPN to the Server i only want to list the files in the Directory f.e. : //192.168.xxx.xxx/Home$/<username> 

When I try it on the simulator I can reach the files via FileSystemStorage.getInstance().listFiles(directory).... 

Thanks for helping
Tobias

Tobias Semmet

unread,
Nov 20, 2019, 10:17:41 AM11/20/19
to CodenameOne Discussions
Maybe via smb ?

Shai Almog

unread,
Nov 20, 2019, 9:55:42 PM11/20/19
to CodenameOne Discussions
The simulator uses the Windows sharing API implicitly because you're running on the OS and file requests to that OS are translated automatically. However, Android/iOS might not offer such a capability so it's unlikely that such a URL will work.
Reply all
Reply to author
Forward
0 new messages