How to mkdir in Java/Corba class?

Hi,

Wouldnt it be nice if there something to create a director or subdirectory if its not there in Java class for Domino?

My extracting embedded objects code fail when the direcory or subdirectoyr not there.

Iam using Domino6.5.3 Developer Client, in Windows 2000.

This is easy with JavaScript code “mkdir” but I like to keep tham all in Java.

Any codesnippet or pointers will be helpful.

Sam

Subject: How to mkdir in Java/Corba class?

Doesn’t the java.io.File class have the functions mkdir() (to create single directory) and mkdirs() (to create whole directory tree) ?

Subject: RE: How to mkdir in Java/Corba class?

Tks Miks, I got it working using java.io.File

File subDirectory = new File(“C:\extracts3\” + doc.getUniversalID() );

			if (!subDirectory.exists())

			    subDirectory.mkdir();

Tks again.

Sam