/** * {@inheritdoc} */ public function createDir($path, Config $config) { $location = $this->applyPathPrefix($path); try { $this->client->createDir($location); } catch (\Exception $e) { return false; } return compact('path') + ['type' => 'dir']; }
/** * Create a directory * * @param string $path directory name * @param array|Config $options * * @return bool */ public function createDir($path, $config = null) { $location = $this->applyPathPrefix($path); return $this->client->createDir($location); }