Hello,
i'm looking for a solution, to convert a URL to a File. I need to copy files which are located on a remote server (
http://...) to a local folder.
I'm able to copy single files from the remote HTTP-server to my local machine. I received a BufferedReader over the InputStream of the URL.
The rest is only a normal copy like it is used for two local files.
My problem is that I need to copy not only a single file, but a whole folder with all subfolders and files recursively. Normally this is a simple operation with the class java.io.File, but this class does only work for files and folders that are located in the local filesystem.
If 've found with the forum search similar threads about this problem, but no
thread gives an sufficient answer on this question. I hope that this thread will give one.
Best regards,
Christian Nicoll