kernel/classes/ezclusterfilehandler.php
public static function cleanupEmptyDirectories( $path )
    {
        $dirpath = eZDir::dirpath( $path );

        eZDebugSetting::writeDebug( 'kernel-clustering', "eZClusterFileHandler::cleanupEmptyDirectories( '{$dirpath}' )" );

        if ( is_dir( $dirpath ) )
        {
            eZDir::cleanupEmptyDirectories( $dirpath );
        }
    }
public static function cleanupEmptyDirectories( $path )
    {
        $dirpath = eZDir::dirpath( $path );

        eZDebugSetting::writeDebug( 'kernel-clustering', "eZClusterFileHandler::cleanupEmptyDirectories( '{$dirpath}' )" );

        if ( is_dir( $dirpath ) )
        {
            eZDir::cleanupEmptyDirectories( $dirpath );
        }
    }
public static function cleanupEmptyDirectories ( $ path ) { $ dirpath = eZDir :: dirpath ( $ path ) ; eZDebugSetting :: writeDebug ( 'kernel-clustering' , "eZClusterFileHandler::cleanupEmptyDirectories( '{$dirpath}' )" ) ; if ( is_dir ( $ dirpath ) ) { eZDir :: cleanupEmptyDirectories ( $ dirpath ) ; } }
Goes trough the directory path and removes empty directories, starting at
the leaf and deleting down until a non empty directory is reached.
If the path is not a directory, nothing will happen.

@param string $path
Goes trough the directory path and removes empty directories starting at the leaf and deleting down until a non empty directory is reached . If the path is not a directory nothing will happen .