code: public void mkdir() throws SmbException {
          String path = getUncPath0();
  
          if( path.length() == 1 ) {
              throw new SmbException( "Invalid operation for workgroups, servers, or shares" );
          }
  
          /*
           * Create Directory Request / Response
           */
  
          if( log.level >= 3 )
              log.println( "mkdir: " + path );
  
          send( new SmbComCreateDirectory( path ), blank_resp() );
  
          attrExpiration = sizeExpiration = 0;
      }
docs: Creates a directory with the path specified by this
  <code>SmbFile</code>. For this method to be successful, the target
  must not already exist. This method will fail when
  used with <code>smb1://</code>, <code>smb1://workgroup/</code>,
  <code>smb1://server/</code>, or <code>smb1://server/share/</code> URLs
  because workgroups, servers, and shares cannot be dynamically created
  (although in the future it may be possible to create shares).
  
  @throws SmbException