source/core/datasystem/file/system/MDirectory.php
public function getSubdirectories()
    {
        $directories = array();
        if ($directoryHandle = opendir($this->m_sPath)) {
            while (false !== ($sFileName = readdir($directoryHandle))) {
                if (
                    $sFileName != "."
                        && $sFileName != ".."
                        && (is_dir($this->m_sPath . "/" . $sFileName))) {

                    array_push($directories, $sFileName);
                }
            }
        }
        sort($directories);
        return $directories;
    }
public function getSubdirectories()
    {
        $directories = array();
        if ($directoryHandle = opendir($this->m_sPath)) {
            while (false !== ($sFileName = readdir($directoryHandle))) {
                if (
                    $sFileName != "."
                        && $sFileName != ".."
                        && (is_dir($this->m_sPath . "/" . $sFileName))) {

                    array_push($directories, $sFileName);
                }
            }
        }
        sort($directories);
        return $directories;
    }
public function getSubdirectories ( ) { $ directories = array ( ) ; if ( $ directoryHandle = opendir ( $ this -> m_sPath ) ) { while ( false !== ( $ sFileName = readdir ( $ directoryHandle ) ) ) { if ( $ sFileName != "." && $ sFileName != ".." && ( is_dir ( $ this -> m_sPath . "/" . $ sFileName ) ) ) { array_push ( $ directories , $ sFileName ) ; } } } sort ( $ directories ) ; return $ directories ; }
Returns the subdirectories of the current directory.

@return array list of directories
Returns the subdirectories of the current directory .