def makeDirectory(directory):
 if os.path.isdir(directory):
  return
 try:
  os.makedirs(directory)
 except OSError:
  print ('Skeinforge can not make the directory %s so give it read/write permission for that directory and the containing directory.' % directory)

def makeDirectory ( directory ) : if os . path . isdir ( directory ) : return try : os . makedirs ( directory ) except OSError : print ( 'Skeinforge can not make the directory %s so give it read/write permission for that directory and the containing directory.' % directory )
make a directory if it does not already exist .