protected function validateStoragePath()
    {
        if (is_null($this->storagePath)) {
            throw new Exception('A storage path has not been set');
        }

        if (! is_dir($this->storagePath) || ! is_writable($this->storagePath)) {
            throw new Exception('The specified storage path is not writable');
        }
    }
protected function validateStoragePath()
    {
        if (is_null($this->storagePath)) {
            throw new Exception('A storage path has not been set');
        }

        if (! is_dir($this->storagePath) || ! is_writable($this->storagePath)) {
            throw new Exception('The specified storage path is not writable');
        }
    }
protected function validateStoragePath ( ) { if ( is_null ( $ this -> storagePath ) ) { throw new Exception ( 'A storage path has not been set' ) ; } if ( ! is_dir ( $ this -> storagePath ) || ! is_writable ( $ this -> storagePath ) ) { throw new Exception ( 'The specified storage path is not writable' ) ; } }
Validate that the storage path is set and is writable
@throws \Exception
Validate that the storage path is set and is writable