SecurityManager s = System.getSecurityManager(); if (s != null) {    s.checkWrite(path); }
checkWrite();
  public boolean mkdir ()  {    SecurityManager s = System.getSecurityManager();    if (s != null)      {	// NOTE: in theory we should use the canonical path.  In	// practice, we can't compute the canonical path until we've	// made this completely.  Lame.	s.checkWrite(path);      }    return performMkdir ();  }