Ensure that the cache path is writable

New check in DiskCache to ensure that the cache path is writable and try to make it writable if it isn't
Yes you're right. I knew there was a reason why I stopped doing late night
coding. I'll fix it once I'm home
On Dec 19, 2014 6:47 PM, "Craig Duncan" <notifications@github.com> wrote:

> In src/DiskCache.php
> <https://github.com/duncan3dc/php-helpers/pull/2#discussion-diff-22136245>
> :
>
> > @@ -38,6 +38,13 @@ public static function path($filename)
> >              }
> >          }
> >
> > +        # Ensure directory is writable
> > +        if (is_writable($path)) {
>
> @ThomasWunderlich <https://github.com/ThomasWunderlich> Shouldn't this
> check be inverted? If the path is writable we don't need to take any action
> do we?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/duncan3dc/php-helpers/pull/2/files#r22136245>.
>