/** * Adds prefix to file path * * @param string $file file * @return string prefixed file path */ protected function prefix($file = '') { $path = parent::prefix($file); fn_set_hook('storage_prefix', $path, $this->type); return $path; }
/** * Adds prefix to file path * * @param string $file file * @return string prefixed file path */ protected function prefix($file = '') { $path = rtrim($this->getOption('dir'), '/') . '/' . parent::prefix($file); fn_set_hook('storage_prefix', $path, $this->type); return $path; }