public static Achilles.Acme.Storage.IO.DirectoryInfo CreateDirectory( string path )
{
// Create the directory info object for that dir (normalized to its absolute representation).
Achilles.Acme.Storage.IO.DirectoryInfo oDir = new Achilles.Acme.Storage.IO.DirectoryInfo( Path.GetFullPath( path ) );
try
{
// Try to create the directory by using standard .Net features. (#415)
if ( !oDir.Exists )
oDir.Create();
return oDir;
}
catch
{
// TJT: Review this code
CreateDirectoryUsingDll( oDir );
return new Achilles.Acme.Storage.IO.DirectoryInfo( path );
}
}