directory remote transfer
Hi,
I am working on an application to transfer directories remotely using multi-threads, sockects and FileOutputStream classes. In the client side everything works perfect, no problems. I check whether the path is a file or directory and send every single file
In the server side the file is received but when trying to write in a directory:
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(new File("c:\\PROJECTS")));
i cannot figure out how to get the files' name corresponding to the original file. Using the FILE class i need to specify a file name before hand, that i dont want to, of course. But cannot find the way with the standard tools am aware of.
I believe this problem should have an easy solution and am missing something despite i looked through all the documentation and check in internet.
I will appreciate some advice and comments to sort out this problem.
thank you

