private function mirrorDirectory($path, FilesystemInterface $remote, AdapterInterface $remoteAdapter) { if (!$remote->has($path) && !$remote->createDir($path)) { throw $this->createRuntimeException('Directory', $path, 'created', $remoteAdapter); } }