protected function _isPathUsable($path)
    {
        if (!is_dir($path)) {
            mkdir($path, 0770, true);
        }

        return is_dir($path) && is_writable($path);
    }
protected function _isPathUsable($path)
    {
        if (!is_dir($path)) {
            mkdir($path, 0770, true);
        }

        return is_dir($path) && is_writable($path);
    }
protected function _isPathUsable ( $ path ) { if ( ! is_dir ( $ path ) ) { mkdir ( $ path , 0770 , true ) ; } return is_dir ( $ path ) && is_writable ( $ path ) ; }
Checks whether or not a given path is usable for writing.

@param string $path Path to folder
@return bool true if it exists and is writable, false otherwise
Checks whether or not a given path is usable for writing .