kernel/private/classes/webdav/ezwebdavcontentbackend.php
protected function mkcolContent( $currentSite, $virtualFolder, $target )
    {
        $nodePath = $this->internalNodePath( $virtualFolder, $target );
        $node = $this->fetchNodeByTranslation( $nodePath );
        if ( $node )
        {
            return false; // @as self::FAILED_EXISTS;
        }

        $parentNode = $this->fetchParentNodeByTranslation( $nodePath );

        if ( !$parentNode )
        {
            return false; // @as self::FAILED_NOT_FOUND;
        }

        // Can we create a collection in the parent node
        if ( !$parentNode->canRead() )
        {
            return false; // @as self::FAILED_FORBIDDEN;
        }

        return $this->createFolder( $parentNode, $nodePath );
    }
protected function mkcolContent( $currentSite, $virtualFolder, $target )
    {
        $nodePath = $this->internalNodePath( $virtualFolder, $target );
        $node = $this->fetchNodeByTranslation( $nodePath );
        if ( $node )
        {
            return false; // @as self::FAILED_EXISTS;
        }

        $parentNode = $this->fetchParentNodeByTranslation( $nodePath );

        if ( !$parentNode )
        {
            return false; // @as self::FAILED_NOT_FOUND;
        }

        // Can we create a collection in the parent node
        if ( !$parentNode->canRead() )
        {
            return false; // @as self::FAILED_FORBIDDEN;
        }

        return $this->createFolder( $parentNode, $nodePath );
    }
protected function mkcolContent ( $ currentSite , $ virtualFolder , $ target ) { $ nodePath = $ this -> internalNodePath ( $ virtualFolder , $ target ) ; $ node = $ this -> fetchNodeByTranslation ( $ nodePath ) ; if ( $ node ) { return false ; // @as self::FAILED_EXISTS; } $ parentNode = $ this -> fetchParentNodeByTranslation ( $ nodePath ) ; if ( ! $ parentNode ) { return false ; // @as self::FAILED_NOT_FOUND; } // Can we create a collection in the parent node if ( ! $ parentNode -> canRead ( ) ) { return false ; // @as self::FAILED_FORBIDDEN; } return $ this -> createFolder ( $ parentNode , $ nodePath ) ; }
Handles collection creation on the content tree level.

It will try to find the parent node of the wanted placement and
create a new collection (folder etc.) as a child.

@param string $currentSite Eg. 'plain_site_user'
@param string $virtualFolder Eg. 'Content'
@param string $target Eg. 'Folder1'
@return bool
Handles collection creation on the content tree level .