• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error creating directories

 
Syed Hussain
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am calling java.io.File.mkdirs() method from a jsp deployed locally on my Windows machine and its working fine, but when I call this method from the same jsp deployed on a Linux machine it is returning false.
Why is it not able to create directories? Is this a file system security issue ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the I/O Forum.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you get an exception?
What is it saying?
You need write-permissions for that directory, of course.
 
Syed Hussain
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not get any exceptions. It is simply returning false.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic