Newscoop\Installer\Services\BootstrapService::checkDirectories PHP Method

checkDirectories() public method

Check if all directories are writable
public checkDirectories ( ) : mixed
return mixed true if all writable or array with not writable directories
    public function checkDirectories()
    {
        $notWritable = array();
        foreach ($this->mustBeWritable as $directory) {
            $fullPath = $this->basePath . '/' . $directory;
            if (!is_writable($fullPath)) {
                $notWritable[] = $fullPath;
            }
        }
        if (count($notWritable) > 0) {
            return $notWritable;
        }
        return true;
    }