Greetings,
Unfortunately, there's no pure Java way to set these
permissions. It should be creating the file according to
your umask, however, so if that's set appropriately, it
should be fine.
I can add code to do a:
Runtime.getRuntime().exec("chmod og-rwx " + fname);
if it's on a Unix system, but that's a platform specific
feature, so a bit lower priority.
-- Morgan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=19745
Greetings,
Unfortunately, there's no pure Java way to set these
permissions. It should be creating the file according to
your umask, however, so if that's set appropriately, it
should be fine.
I can add code to do a:
Runtime.getRuntime().exec("chmod og-rwx " + fname);
if it's on a Unix system, but that's a platform specific
feature, so a bit lower priority.
-- Morgan