Api/Api.php
private function getDirectoryPath()
    {
        $path = $this->config['directory'];

        // Create directory if not exists
        if (!is_dir($path)) {
            mkdir($path, 0755, true);
        }

        return $path . DIRECTORY_SEPARATOR;
    }
private function getDirectoryPath()
    {
        $path = $this->config['directory'];

        // Create directory if not exists
        if (!is_dir($path)) {
            mkdir($path, 0755, true);
        }

        return $path . DIRECTORY_SEPARATOR;
    }
private function getDirectoryPath ( ) { $ path = $ this -> config [ 'directory' ] ; // Create directory if not exists if ( ! is_dir ( $ path ) ) { mkdir ( $ path , 0755 , true ) ; } return $ path . DIRECTORY_SEPARATOR ; }
Returns the directory path and creates it if not exists.

@return string
Returns the directory path and creates it if not exists .