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

Discussion in 'Java' started by compstudy, Feb 18, 2006.

  1. compstudy

    compstudy New Member

    Feb 18, 2006
    Likes Received:
    Trophy Points:
    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: Feb 18, 2006
  2. shabbir

    shabbir Administrator Staff Member

    Jul 12, 2004
    Likes Received:
    Trophy Points:
    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.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice