public function getDirectories()
    {
        if (isset($this->raw->directories)) {
            $directories = (array) $this->raw->directories;
            $base = $this->getBasePath();

            array_walk(
                $directories,
                function (&$directory) use ($base) {
                    $directory = $base
                               . DIRECTORY_SEPARATOR
                               . rtrim(Path::canonical($directory), DIRECTORY_SEPARATOR);
                }
            );

            return $directories;
        }

        return array();
    }
public function getDirectories()
    {
        if (isset($this->raw->directories)) {
            $directories = (array) $this->raw->directories;
            $base = $this->getBasePath();

            array_walk(
                $directories,
                function (&$directory) use ($base) {
                    $directory = $base
                               . DIRECTORY_SEPARATOR
                               . rtrim(Path::canonical($directory), DIRECTORY_SEPARATOR);
                }
            );

            return $directories;
        }

        return array();
    }
public function getDirectories ( ) { if ( isset ( $ this -> raw -> directories ) ) { $ directories = ( array ) $ this -> raw -> directories ; $ base = $ this -> getBasePath ( ) ; array_walk ( $ directories , function ( & $ directory ) use ( $ base ) { $ directory = $ base . DIRECTORY_SEPARATOR . rtrim ( Path :: canonical ( $ directory ) , DIRECTORY_SEPARATOR ) ; } ) ; return $ directories ; } return array ( ) ; }
Returns the list of relative directory paths.

@return array The list of paths.
Returns the list of relative directory paths .