New folder

When creating a new folder, which will be deleted with the Application exits.

Is there a way to check to see if the OS/system the user is using will allow a new folder to be created. Security? Etc...

I can add a check to see if the new folder was created, or failed to be created, however I wasn't to be able to gather more information when this

operation fails. -- Or information before calling the create directory.

Thanks for your help.

-Deb

[483 byte] By [-Deba] at [2007-11-27 8:45:19]
# 1

> Is there a way to check to see if the OS/system the

> user is using will allow a new folder to be created.

> Security? Etc...

Check out the SecurityManager class and the FileSystemPolicy

> I can add a check to see if the new folder was

> created, or failed to be created, however I wasn't to

> be able to gather more information when this

> operation fails. -- Or information before calling the

> create directory.

The exception should contain the relevant information

>

> Thanks for your help.

>

> -Deb

tjacobs01a at 2007-7-12 20:46:25 > top of Java-index,Desktop,Developing for the Desktop...
# 2

Vista has crazy permission :) with creating folders/files and where you can

create them.

Do you know how to incorporate being allowed to create a temp folder in the

Program Files directory for a Desktop Application.

I create a temp folder when the App runs. I add and delete files into this folder,

and then delete the contents as well as the folder when closing the App.

Any info on this would be great.

-Deba at 2007-7-12 20:46:25 > top of Java-index,Desktop,Developing for the Desktop...
# 3
I'm too sweet. These stupid trolls get me every time
tjacobs01a at 2007-7-12 20:46:25 > top of Java-index,Desktop,Developing for the Desktop...
# 4
Oooookay. :)
-Deba at 2007-7-12 20:46:25 > top of Java-index,Desktop,Developing for the Desktop...