lithium\tests\integration\storage\CacheTest::_checkPath PHP Method

_checkPath() protected method

protected _checkPath ( )
    protected function _checkPath()
    {
        $resources = Libraries::get(true, 'resources');
        if (is_writable($resources) && !is_dir("{$resources}/tmp/cache")) {
            mkdir("{$resources}/tmp/cache", 0777, true);
        }
        $directory = new SplFileInfo("{$resources}/tmp/cache");
        return $directory->isDir() && $directory->isReadable() && $directory->isWritable();
    }