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

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

  1. compstudy

    compstudy New Member

    Joined:
    Feb 18, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    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

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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