protected function makeFileDirectory($directoryPath)
    {
        $filePath = $this->publicRoot . $directoryPath;

        // Create the path if the directory does not exist
        if (!is_dir($filePath)) {
            try {
                mkdir($filePath, 0775, true);
                return true;
            } catch (Exception $e) {
                throw new Exception('PitonCMS: Failed to create file upload directory');
            }
        }

        // The directory already exists
        return false;
    }
protected function makeFileDirectory($directoryPath)
    {
        $filePath = $this->publicRoot . $directoryPath;

        // Create the path if the directory does not exist
        if (!is_dir($filePath)) {
            try {
                mkdir($filePath, 0775, true);
                return true;
            } catch (Exception $e) {
                throw new Exception('PitonCMS: Failed to create file upload directory');
            }
        }

        // The directory already exists
        return false;
    }
protected function makeFileDirectory ( $ directoryPath ) { $ filePath = $ this -> publicRoot . $ directoryPath ; // Create the path if the directory does not exist if ( ! is_dir ( $ filePath ) ) { try { mkdir ( $ filePath , 0775 , true ) ; return true ; } catch ( Exception $ e ) { throw new Exception ( 'PitonCMS: Failed to create file upload directory' ) ; } } // The directory already exists return false ; }
Make Directory Path

Creates the directory path
@param  string $directoryPath
@return bool                  True|False
Make Directory Path