kernel/private/classes/webdav/ezwebdavcontentbackend.php
public function checkDeleteRecursive( $target )
    {
        $errors = array();

        $fullPath = $target;
        $target = $this->splitFirstPathElement( $target, $currentSite );

        if ( !$currentSite )
        {
            // Cannot delete root folder
            return array(
                new ezcWebdavErrorResponse(
                    ezcWebdavResponse::STATUS_403,
                    $fullPath
                ),
            );
        }

        if ( $target === "" )
        {
            // Cannot delete entries in site list
            return array(
                new ezcWebdavErrorResponse(
                    ezcWebdavResponse::STATUS_403,
                    $fullPath
                ),
            );
        }

        return $errors;
    }
public function checkDeleteRecursive( $target )
    {
        $errors = array();

        $fullPath = $target;
        $target = $this->splitFirstPathElement( $target, $currentSite );

        if ( !$currentSite )
        {
            // Cannot delete root folder
            return array(
                new ezcWebdavErrorResponse(
                    ezcWebdavResponse::STATUS_403,
                    $fullPath
                ),
            );
        }

        if ( $target === "" )
        {
            // Cannot delete entries in site list
            return array(
                new ezcWebdavErrorResponse(
                    ezcWebdavResponse::STATUS_403,
                    $fullPath
                ),
            );
        }

        return $errors;
    }
public function checkDeleteRecursive ( $ target ) { $ errors = array ( ) ; $ fullPath = $ target ; $ target = $ this -> splitFirstPathElement ( $ target , $ currentSite ) ; if ( ! $ currentSite ) { // Cannot delete root folder return array ( new ezcWebdavErrorResponse ( ezcWebdavResponse :: STATUS_403 , $ fullPath ) , ) ; } if ( $ target === "" ) { // Cannot delete entries in site list return array ( new ezcWebdavErrorResponse ( ezcWebdavResponse :: STATUS_403 , $ fullPath ) , ) ; } return $ errors ; }
Returns if everything below a path can be deleted recursively.

Checks files and directories recursively and returns if everything can
be deleted.  Returns an empty array if no errors occured, and an array
with the files which caused errors otherwise.

@param string $source
@return array
Returns if everything below a path can be deleted recursively .