protected function checkFilePath($filePath)
	{
	    $filePath = rtrim($filePath, '/\\');
	    if (!is_dir($filePath)) {
			mkdir($filePath, 0755, true);
		}
        
		if (!is_writable($filePath)) {
			throw new \RuntimeException(sprintf('The base cache path `%s` is not writable.', $filePath));
		}

		return true;
	}
protected function checkFilePath($filePath)
	{
	    $filePath = rtrim($filePath, '/\\');
	    if (!is_dir($filePath)) {
			mkdir($filePath, 0755, true);
		}
        
		if (!is_writable($filePath)) {
			throw new \RuntimeException(sprintf('The base cache path `%s` is not writable.', $filePath));
		}

		return true;
	}
protected function checkFilePath ( $ filePath ) { $ filePath = rtrim ( $ filePath , '/\\' ) ; if ( ! is_dir ( $ filePath ) ) { mkdir ( $ filePath , 0755 , true ) ; } if ( ! is_writable ( $ filePath ) ) { throw new \ RuntimeException ( sprintf ( 'The base cache path `%s` is not writable.' , $ filePath ) ) ; } return true ; }
Check that the file path is a directory and writable.

@param   string   $filePath  A file path.

@return  boolean  The method will always return true, if it returns.
@throws  \RuntimeException if the file path is invalid.
Check that the file path is a directory and writable .