#include"tcpdl.h"

void __saveds
createpath( char *text )
{
int  i=0;
BPTR templock;

   while( TRUE )
   {
      if( text[i]==0 )
         break;
      
      if( text[i]==47 )
      {
         text[i]=0;
         
         DeleteFile( text );
         
         templock = Lock( text, ACCESS_READ );
         if( templock==0 )
            templock = CreateDir( text );
         UnLock( templock );
         
         text[i]=47;
         
         if( templock==0 )
            break;
      }
      
      i++;
   }
   return;
}
