Newscoop\Installer\Services\BootstrapService::makeDirectoriesWritable PHP Метод

makeDirectoriesWritable() публичный Метод

Try to make all directories writeable
public makeDirectoriesWritable ( ) : boolean
Результат boolean
    public function makeDirectoriesWritable()
    {
        foreach ($this->mustBeWritable as $directory) {
            $fullPath = $this->basePath . '/' . $directory;
            try {
                if (!$this->filesystem->exists($fullPath)) {
                    $this->filesystem->mkdir($fullPath);
                }
                $this->filesystem->chown($fullPath, 'www-data', true);
                $this->filesystem->chmod($fullPath, 0777, 00, true);
            } catch (IOException $e) {
                if ($this->logger != null) {
                    $this->logger->addDebug($e->getMessage());
                }
            }
        }
        return true;
    }