Issue request to create a folder with given parent folder and name.
<p/>
No checks are performed before request.

@param cmParentFolder folder of the container
@param name base name of the folder to be created
@return the new CloudMe folder
322801
private CMFolder rawCreateFolder( CMFolder cmParentFolder, String name )
    {
        StringBuilder innerXml = new StringBuilder();
        innerXml.append( "<folder id='" ).append( cmParentFolder.getId() ).append( "'/>" );
        innerXml.append( "<childFolder>" ).append( XmlUtils.escape( name ) ).append( "</childFolder>" );

        HttpPost request = buildSoapRequest( "newFolder", innerXml.toString() );
        CResponse response = retryStrategy.invokeRetry( getApiRequestInvoker( request, null ) );

        Document dom = response.asDom();
        String newFolderId = dom.getElementsByTagNameNS( "*", "newFolderId" ).item( 0 ).getTextContent();

        return cmParentFolder.addChild( newFolderId, name );
    }
1216084
public Nfs3CreateRequest makeCreateRequest(NfsCreateMode createMode, byte[] parentDirectoryFileHandle, String name,
            NfsSetAttributes attributes, byte[] verifier) throws FileNotFoundException {
        return new Nfs3CreateRequest(createMode, parentDirectoryFileHandle, name, attributes, verifier, _credential);
    }
491672
public VDirectory getDirectoryCreate(String name) {
		VDirectory child = new VDirectory(this, name);
		child.create();
		return child;
	}
912033
public CmsXmlContentProperty withName(String name) {

        return new CmsXmlContentProperty(
            name,
            m_type,
            m_visibility,
            m_widget,
            m_widgetConfiguration,
            m_ruleRegex,
            m_ruleType,
            m_default,
            m_niceName,
            m_description,
            m_error,
            m_preferFolder);
    }
1257344
public BoxRequestsFolder.CreateFolder getCreateRequest(String parentId, String name) {
        BoxRequestsFolder.CreateFolder request = new BoxRequestsFolder.CreateFolder(parentId, name, getFoldersUrl(), mSession);
        return request;
    }
1101585
public Bucket createBucket(String bucketName) {
    // [START createBucket]
    Bucket bucket = storage.create(BucketInfo.of(bucketName));
    // [END createBucket]
    return bucket;
  }
1215921
private String rawCreateFolder( CPath path, String parentId )
    {
        JSONObject body = new JSONObject();
        body.put( "title", path.getBaseName() );
        body.put( "mimeType", MIME_TYPE_DIRECTORY );
        JSONArray ids = new JSONArray();
        JSONObject idObj = new JSONObject();
        idObj.put( "id", parentId );
        ids.put( idObj );
        body.put( "parents", ids );

        HttpPost request = new HttpPost( FILES_ENDPOINT + "?fields=id" );
        request.setEntity( new JSONEntity( body ) );

        RequestInvoker<CResponse> ri = getApiRequestInvoker( request, path );
        JSONObject jresp = retryStrategy.invokeRetry( ri ).asJSONObject();
        return jresp.getString( "id" );
    }
716824
public Node createChild(final String name) throws IllegalArgumentException {
        // Precondition checks
        if (name == null || name.trim().length() == 0) {
            throw new IllegalArgumentException("name must be specified");
        }

        // Create
        return createChild(Patterns.from(name));
    }
414369
def create_child_folder(self, name, description=None):
        

        if not self.object_id:
            return None

        url = self.build_url(
            self._endpoints.get('list_items').format(id=self.object_id))

        data = {'name': name, 'folder': {}}
        if description:
            data['description'] = description

        response = self.con.post(url, data=data)
        if not response:
            return None

        folder = response.json()

        return self._classifier(folder)(parent=self,
                                        **{self._cloud_data_key: folder})
494190
public static EntityType create(@NonNull String name, EntityType parent) {
      EntityType toReturn = DynamicEnum.register(new EntityType(name, parent));
      if (toReturn.setParentIfAbsent(parent)) {
         Config.setProperty(toReturn.canonicalName() + ".parent", parent.canonicalName());
      }
      values.add(toReturn);
      return toReturn;
   }
49048
public void newPoolInstance(CmsParameterConfiguration configuration, String poolName) throws CmsInitException {

        CmsDbPoolV11 pool;

        try {
            pool = new CmsDbPoolV11(configuration, poolName);
        } catch (Exception e) {

            CmsMessageContainer message = Messages.get().container(Messages.ERR_INIT_CONN_POOL_1, poolName);
            if (LOG.isErrorEnabled()) {
                LOG.error(message.key(), e);
            }
            throw new CmsInitException(message, e);
        }
        addPool(pool);
    }
617492
public void createSharedFolder() throws Exception {

        String originalSiteRoot = m_cms.getRequestContext().getSiteRoot();
        CmsProject originalProject = m_cms.getRequestContext().getCurrentProject();
        try {
            m_cms.getRequestContext().setSiteRoot("");
            m_cms.getRequestContext().setCurrentProject(m_cms.createTempfileProject());
            if (!m_cms.existsResource("/shared")) {
                m_cms.createResource("/shared", OpenCms.getResourceManager().getResourceType("folder"));
            }

            try {
                m_cms.lockResourceTemporary("/shared");
            } catch (CmsException e) {
                LOG.error(e.getLocalizedMessage(), e);
            }
            try {
                m_cms.chacc("/shared", "group", "Users", "+v+w+r+i");
            } catch (CmsException e) {
                LOG.error(e.getLocalizedMessage(), e);
            }
            CmsResource shared = m_cms.readResource("/shared");
            try {
                OpenCms.getPublishManager().publishProject(
                    m_cms,
                    new CmsHtmlReport(m_cms.getRequestContext().getLocale(), m_cms.getRequestContext().getSiteRoot()),
                    shared,
                    false);
                OpenCms.getPublishManager().waitWhileRunning();
            } catch (CmsException e) {
                LOG.error(e.getLocalizedMessage(), e);
            }
        } finally {
            m_cms.getRequestContext().setSiteRoot(originalSiteRoot);
            m_cms.getRequestContext().setCurrentProject(originalProject);
        }

    }
1252996
@SuppressWarnings("deprecation")
    public CmsResource createFolder(String targetFolder, String folderName) throws Exception {

        if (m_cms.existsResource(targetFolder + folderName)) {
            m_shell.getOut().println(
                getMessages().key(Messages.GUI_SHELL_FOLDER_ALREADY_EXISTS_1, targetFolder + folderName));
            return null;
        }
        return m_cms.createResource(targetFolder + folderName, CmsResourceTypeFolder.getStaticTypeId());
    }
59398
public void createSubEntry(final CmsClientSitemapEntry parent, final CmsUUID structureId) {

        CmsSitemapTreeItem item = CmsSitemapTreeItem.getItemById(parent.getId());
        AsyncCallback<CmsClientSitemapEntry> callback = new AsyncCallback<CmsClientSitemapEntry>() {

            public void onFailure(Throwable caught) {

                // nothing to do
            }

            public void onSuccess(CmsClientSitemapEntry result) {

                makeNewEntry(parent, new I_CmsSimpleCallback<CmsClientSitemapEntry>() {

                    public void execute(CmsClientSitemapEntry newEntry) {

                        createSubEntry(newEntry, parent.getId(), structureId);
                    }
                });

            }

        };

        if (item.getLoadState().equals(LoadState.UNLOADED)) {
            getChildren(parent.getId(), true, callback);
        } else {
            callback.onSuccess(parent);
        }
    }
430738
public CmsUrlNameMappingFilter filterName(String name) {

        if (name == null) {
            throw new IllegalArgumentException();
        }
        CmsUrlNameMappingFilter result = new CmsUrlNameMappingFilter(this);
        result.m_name = name;
        return result;
    }
99423
@CheckReturnValue
  public static CloudStorageFileSystem forBucket(String bucket, CloudStorageConfiguration config) {
    checkArgument(
        !bucket.startsWith(URI_SCHEME + ":"), "Bucket name must not have schema: %s", bucket);
    checkNotNull(config);
    return new CloudStorageFileSystem(
        new CloudStorageFileSystemProvider(config.userProject()), bucket, config);
  }
23534
public function createFolder($folderName, \Google_Service_Drive_DriveFile $parentFolder = null)
    {
        return $this->createFile($folderName, self::MIME_FOLDER, $parentFolder);
    }