+void CreateDir( char* path )
+{
+ if ( ! path || ! strlen( path ) )
+ return;
+ ReplaceDivider( path );
+ // see if the parent exists yet
+ int i; // looping index
+ string parent; // path to parent
+
+ parent = path;
+ for ( i = strlen( parent.c_str() )-1; i >= 0; i-- )
+ if ( parent[i] == PathDivider()[0] )
+ {
+ parent[i] = '\0';
+ break;
+ }
+
+ if ( ! Exists( parent.c_str() ) )
+ {
+ CreateDir( parent.c_str() );
+ }