• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating folder in Java  RSS feed

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I want to create one folder on the dedicated server after successful sign up and name it with the company id generated from db for each user and then 2 more folders inside.

e.g.
the user signed in and the id i got from db is co_id=1214

Folder name=1214 then inside two folders userEvidences and userFiles

Any help will be highly appreciated

Thanks & best regards
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By folder, I am assuming you want to create a sub directory?

To do that, take a look at the java.io.File class -- particularly the mkdir() and mkdirs() methods.

Henry
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:By folder, I am assuming you want to create a sub directory?

To do that, take a look at the java.io.File class -- particularly the mkdir() and mkdirs() methods.

Henry


Thanks a lot Henry for your prompt help

Best Regards
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!