I need to access files on a local sever, and obtain their path for use in a File object.
I don't think I need to use
HttpURLConnectionfor this purpose, do I?Also,
File file = new File(IPAddress)doesn't work.
WhereIPAddresslooks something likesmb://192.168.1.xxx.Will
file:///192.168.1.xxxwork forIPAddress?
I'm not able to find a solution on the internet where both accessing a local server and listing its files is achieved.
So, how do I get file paths from a local server for performing File operations?
Edit 1:
By local server I mean a computer on my network on which I have a shared folder.
And I'm building an app that can access that folder and contents in it and do something with them.
I am facing problems fetching file paths to that shared folder content.