Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating new directory in the server  RSS feed

 
Ronaldo Nazario
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm building an application that allows users to upload files into the server, but I don't want to specify a single folder to store all the files. I want to create a folder for each user, the name of the folder would be the username.

I tried to use this code:



Where "/Public/" is a directory which doesn't exist on the server, therefore I have to create it at runtime.

I think this is more a java.IO question, but as I bumped into it doing a web application I decided to post it here...

Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!