URGENT....Creating a new dir frm client in server machine

compstudy's Avatar, Join Date: Feb 2006
Newbie Member
I would like to knw: In JAVA, how shld i create new directory in a server machine as a result of an action of client interaction?
i.e suppose one client is uploading a file to the server.I want to create a directory in the server with the name of dir. as d name of d file to be uploaded and dis dir. will contain the uploaded file.
Plz reply to my query

Last edited by compstudy; 19Feb2006 at 00:57..
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
It depends upon your requirement.

As an example suppose you name the files in your server as ClientUniqueId+FileUniqueId then its better to have a single folder for all the uploads.

If you have just a filename then its better to have the Client Folder created. There is no hard and fast rule but just what is better in your situation and can easily be understood.