Meaningless Drivel is fun!*
The moose likes I/O and Streams and the fly likes Error creating directories Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Error creating directories" Watch "Error creating directories" New topic
Author

Error creating directories

Syed Hussain
Ranch Hand

Joined: Feb 06, 2001
Posts: 55
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

Joined: Jan 10, 2002
Posts: 61095
    
  66

Moving to the I/O Forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Do you get an exception?
What is it saying?
You need write-permissions for that directory, of course.


http://home.arcor.de/hirnstrom/bewerbung
Syed Hussain
Ranch Hand

Joined: Feb 06, 2001
Posts: 55
I do not get any exceptions. It is simply returning false.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error creating directories