/** * Prepare driver before mount volume. * Return true if volume is ready. * * @return bool * */ protected function init() { parent::init(); $this->fs->addPlugin(new HasDir()); if ($this->fs->hasDir()) { $this->options['checkSubfolders'] = true; } return true; }
/** * Prepare driver before mount volume. * Return true if volume is ready. * * @return bool **/ protected function init() { if (empty($this->options['icon'])) { $this->options['icon'] = true; } if ($res = parent::init()) { if ($this->options['icon'] === true) { unset($this->options['icon']); } } return $res; }